]> Sergey Matveev's repositories - btrtrc.git/blobdiff - webseed-peer.go
Some peerImpl observations
[btrtrc.git] / webseed-peer.go
index 4ed323725d655f5c55156a41eb43ec7e0168bbfa..5b0cb824ad88eb2ec9076478be1a5454737b46fe 100644 (file)
@@ -61,14 +61,15 @@ func (ws *webseedPeer) connectionFlags() string {
        return "WS"
 }
 
-// TODO: This is called when banning peers. Perhaps we want to be able to ban webseeds too.
+// TODO: This is called when banning peers. Perhaps we want to be able to ban webseeds too. We could
+// return bool if this is even possible, and if it isn't, skip to the next drop candidate.
 func (ws *webseedPeer) drop() {}
 
 func (ws *webseedPeer) updateRequests() {
        ws.peer.doRequestState()
 }
 
-func (ws *webseedPeer) _close() {}
+func (ws *webseedPeer) onClose() {}
 
 func (ws *webseedPeer) requestResultHandler(r request, webseedRequest webseed.Request) {
        result := <-webseedRequest.Result