@cryptotaxi247 / kubo / commits / 85f84fe44

refac(ex:bs) remove local peer ref until shown to be necessary

Brian Tiger Chow committed Sep 18, 2014 at 19:02 UTC 85f84fe446d91b5d3155fa93a7fee2a141acf6b4
1 file changed -3
exchange/bitswap/bitswap.go
-3
@@ -44,7 +44,6 @@ func NewSession(parent context.Context, s bsnet.NetworkService, p *peer.Peer, d
44 blockstore: blockstore.NewBlockstore(d),
45 notifications: notifications.New(),
46 strategy: strategy.New(),
47 - peer: p,
47 routing: directory,
48 sender: bsnet.NewNetworkAdapter(s, &receiver),
49 }
@@ -55,8 +54,6 @@ func NewSession(parent context.Context, s bsnet.NetworkService, p *peer.Peer, d
54
55 // bitswap instances implement the bitswap protocol.
56 type bitswap struct {
58 - // peer is the identity of this (local) node.
59 - peer *peer.Peer
57
58 // sender delivers messages on behalf of the session
59 sender bsnet.NetworkAdapter