提交 79705729 作者: Brian Tiger Chow

style(bitswap) remove unnecessary interface

上级 de9fcf5d
......@@ -7,8 +7,6 @@ import (
)
type Strategy interface {
Accountant
// Returns a slice of Peers that
Peers() []*peer.Peer
......@@ -20,9 +18,7 @@ type Strategy interface {
// Seed initializes the decider to a deterministic state
Seed(int64)
}
type Accountant interface {
// MessageReceived records receipt of message for accounting purposes
MessageReceived(*peer.Peer, bsmsg.BitSwapMessage) error
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论