]> Sergey Matveev's repositories - btrtrc.git/blobdiff - peer-impl.go
Drop support for go 1.20
[btrtrc.git] / peer-impl.go
index e29fb43967cb255086dc3fa73dead6b077749df4..f9f9096b198ea5d247d157fb940fbc9172ace1ac 100644 (file)
@@ -2,6 +2,7 @@ package torrent
 
 import (
        "github.com/RoaringBitmap/roaring"
+
        "github.com/anacrolix/torrent/metainfo"
 )
 
@@ -20,9 +21,12 @@ type peerImpl interface {
        connectionFlags() string
        onClose()
        onGotInfo(*metainfo.Info)
+       // Drop connection. This may be a no-op if there is no connection.
        drop()
+       // Rebuke the peer
+       ban()
        String() string
-       connStatusString() string
+       peerImplStatusLines() []string
 
        // All if the peer should have everything, known if we know that for a fact. For example, we can
        // guess at how many pieces are in a torrent, and assume they have all pieces based on them