Skip to content

Commit d7b7d8a

Browse files
committed
Remove dependency on torrent/logonce
1 parent 59e0da5 commit d7b7d8a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

server.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@ import (
1515

1616
"github.com/anacrolix/generics"
1717
"github.com/anacrolix/log"
18-
"github.com/anacrolix/missinggo/v2"
18+
"github.com/anacrolix/missinggo"
1919
"github.com/anacrolix/sync"
2020
"github.com/anacrolix/torrent/bencode"
2121
"github.com/anacrolix/torrent/iplist"
22-
"github.com/anacrolix/torrent/logonce"
2322
"github.com/anacrolix/torrent/metainfo"
2423
"golang.org/x/time/rate"
2524

@@ -354,7 +353,7 @@ func (s *Server) serve() error {
354353
}
355354
expvars.Add("packets read", 1)
356355
if n == len(b) {
357-
logonce.Stderr.Printf("received dht packet exceeds buffer size")
356+
expvars.Add("received dht packet exceeds buffer size", 1)
358357
continue
359358
}
360359
if missinggo.AddrPort(addr) == 0 {

0 commit comments

Comments
 (0)