]> Sergey Matveev's repositories - btrtrc.git/blobdiff - t.go
Move a few methods to Torrent, and track how many DHT announces occur
[btrtrc.git] / t.go
diff --git a/t.go b/t.go
index 854e0d563c0fe852e13c695b4b29234c4cf44698..e75009eca49e3c0d0a52ec9da35c5bc7a89e0c54 100644 (file)
--- a/t.go
+++ b/t.go
@@ -179,7 +179,7 @@ func (t *Torrent) AddPeers(pp []Peer) {
        cl := t.cl
        cl.mu.Lock()
        defer cl.mu.Unlock()
-       cl.addPeers(t, pp)
+       t.addPeers(pp)
 }
 
 // Marks the entire torrent for download. Requires the info first, see