Commit 2dc8bc83 authored by Brian Tiger Chow's avatar Brian Tiger Chow

chore(bitswap) rm vestigial fields

parent b8fcc137
......@@ -50,13 +50,9 @@ type bitswap struct {
// TODO(brian): save the strategist's state to the datastore
strategist strategy.Strategist
partners ledgerMap
// haveList is the set of keys we have values for. a map for fast lookups.
// haveList KeySet -- not needed. all values in datastore?
strategy strategyFunc
haltChan chan struct{}
}
......@@ -68,12 +64,10 @@ func NewSession(parent context.Context, s bsnet.NetworkService, p *peer.Peer, d
bs := &bitswap{
peer: p,
blockstore: blockstore.NewBlockstore(d),
partners: ledgerMap{},
routing: directory,
sender: bsnet.NewNetworkAdapter(s, &receiver),
haltChan: make(chan struct{}),
notifications: notifications.New(),
strategy: yesManStrategy,
}
receiver.Delegate(bs)
......
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