@cryptotaxi247 / kubo / commits / 2dc8bc838

chore(bitswap) rm vestigial fields

Brian Tiger Chow committed Sep 17, 2014 at 18:28 UTC 2dc8bc8381f510b58234d1f798b09d3893ca307e
1 file changed -6
bitswap/bitswap.go
-6
@@ -50,13 +50,9 @@ type bitswap struct {
50 // TODO(brian): save the strategist's state to the datastore
51 strategist strategy.Strategist
52
53 - partners ledgerMap
54 -
53 // haveList is the set of keys we have values for. a map for fast lookups.
54 // haveList KeySet -- not needed. all values in datastore?
55
58 - strategy strategyFunc
59 -
56 haltChan chan struct{}
57 }
58
@@ -68,12 +64,10 @@ func NewSession(parent context.Context, s bsnet.NetworkService, p *peer.Peer, d
64 bs := &bitswap{
65 peer: p,
66 blockstore: blockstore.NewBlockstore(d),
71 - partners: ledgerMap{},
67 routing: directory,
68 sender: bsnet.NewNetworkAdapter(s, &receiver),
69 haltChan: make(chan struct{}),
70 notifications: notifications.New(),
76 - strategy: yesManStrategy,
71 }
72 receiver.Delegate(bs)
73