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

style(bitswap) sort in c'tor

parent 36ce8a28
......@@ -57,11 +57,11 @@ func NewSession(parent context.Context, s bsnet.NetworkService, p *peer.Peer, d
// FIXME(brian): instantiate a concrete Strategist
receiver := bsnet.Forwarder{}
bs := &bitswap{
peer: p,
blockstore: blockstore.NewBlockstore(d),
notifications: notifications.New(),
peer: p,
routing: directory,
sender: bsnet.NewNetworkAdapter(s, &receiver),
notifications: notifications.New(),
}
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