Commit 619a9470 authored by Brian Tiger Chow's avatar Brian Tiger Chow

style(exch:bitswap) rename variable

parent b30eb0e7
......@@ -27,15 +27,15 @@ type Routing interface {
// NewSession initializes a bitswap session.
func NewSession(parent context.Context, s bsnet.NetworkService, p *peer.Peer, d ds.Datastore, directory Routing) exchange.Interface {
adapter := bsnet.NewNetworkAdapter(s, nil)
networkAdapter := bsnet.NewNetworkAdapter(s, nil)
bs := &bitswap{
blockstore: blockstore.NewBlockstore(d),
notifications: notifications.New(),
strategy: strategy.New(),
routing: directory,
sender: adapter,
sender: networkAdapter,
}
adapter.SetDelegate(bs)
networkAdapter.SetDelegate(bs)
return 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