docs(bitswap:strat) interface comments
Brian Tiger Chow committed
Sep 19, 2014 at 17:34 UTC
8213cfbaa44df1aa06398931d92994c6482bf359
1 file changed
+3
-2
exchange/bitswap/strategy/interface.go
+3
-2
@@ -7,10 +7,11 @@ import (
7
)
8
9
type Strategy interface {
10
- // Returns a slice of Peers that
10
+ // Returns a slice of Peers with whom the local node has active sessions
11
Peers() []*peer.Peer
12
13
- // WantList returns the WantList for the given Peer
13
+ // BlockIsWantedByPeer returns true if peer wants the block given by this
14
+ // key
15
BlockIsWantedByPeer(u.Key, *peer.Peer) bool
16
17
// ShouldSendTo(Peer) decides whether to send data to this Peer