]> Sergey Matveev's repositories - btrtrc.git/commitdiff
connLessTrusted takes peer instead of PeerConn
authorMatt Joiner <anacrolix@gmail.com>
Sun, 31 May 2020 14:03:51 +0000 (00:03 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Sun, 31 May 2020 14:03:51 +0000 (00:03 +1000)
misc.go

diff --git a/misc.go b/misc.go
index b49ff7f431a8b7d48a8f5f123d652bdc45d9f92d..318ae9945a2da83829869e52eb7df1f29225826a 100644 (file)
--- a/misc.go
+++ b/misc.go
@@ -106,7 +106,7 @@ func chunkIndexSpec(index pp.Integer, pieceLength, chunkSize pp.Integer) chunkSp
        return ret
 }
 
-func connLessTrusted(l, r *PeerConn) bool {
+func connLessTrusted(l, r *peer) bool {
        return l.trust().Less(r.trust())
 }