Commit e040a00a authored by Brian Tiger Chow's avatar Brian Tiger Chow

docs(bitswap:strat) interface comments

parent 666443af
......@@ -7,10 +7,11 @@ import (
)
type Strategy interface {
// Returns a slice of Peers that
// Returns a slice of Peers with whom the local node has active sessions
Peers() []*peer.Peer
// WantList returns the WantList for the given Peer
// BlockIsWantedByPeer returns true if peer wants the block given by this
// key
BlockIsWantedByPeer(u.Key, *peer.Peer) bool
// ShouldSendTo(Peer) decides whether to send data to this Peer
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment