cmd/dht-get-peers: Update to use "dht".Server.Announce
This commit is contained in:
parent
9d640cd42d
commit
c53714e660
@ -133,7 +133,7 @@ func main() {
|
||||
seen := make(map[util.CompactPeer]struct{})
|
||||
getPeers:
|
||||
for {
|
||||
ps, err := s.GetPeers(*infoHash)
|
||||
ps, err := s.Announce(*infoHash, 0, false)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user