From 2dc8bc8381f510b58234d1f798b09d3893ca307e Mon Sep 17 00:00:00 2001 From: Brian Tiger Chow <brian.holderchow@gmail.com> Date: Wed, 17 Sep 2014 18:28:20 -0700 Subject: [PATCH] chore(bitswap) rm vestigial fields --- bitswap/bitswap.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/bitswap/bitswap.go b/bitswap/bitswap.go index 2719eb0aa..4fe95e214 100644 --- a/bitswap/bitswap.go +++ b/bitswap/bitswap.go @@ -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) -- GitLab