connLessTrusted takes peer instead of PeerConn

This commit is contained in:
Matt Joiner 2020-06-01 00:03:51 +10:00
parent decf8bb6ea
commit 563a09cc47
1 changed files with 1 additions and 1 deletions

View File

@ -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())
}