Commit 658c9556 authored by Brian Tiger Chow's avatar Brian Tiger Chow

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

parent 0abce33f
......@@ -44,7 +44,6 @@ func NewSession(parent context.Context, s bsnet.NetworkService, p *peer.Peer, d
blockstore: blockstore.NewBlockstore(d),
notifications: notifications.New(),
strategy: strategy.New(),
peer: p,
routing: directory,
sender: bsnet.NewNetworkAdapter(s, &receiver),
}
......@@ -55,8 +54,6 @@ func NewSession(parent context.Context, s bsnet.NetworkService, p *peer.Peer, d
// bitswap instances implement the bitswap protocol.
type bitswap struct {
// peer is the identity of this (local) node.
peer *peer.Peer
// sender delivers messages on behalf of the session
sender bsnet.NetworkAdapter
......
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