提交 8213cfba 作者: Brian Tiger Chow

docs(bitswap:strat) interface comments

上级 251f1d7f
......@@ -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 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论