mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-13 12:18:00 +08:00
style(exch:bitswap) rename variable
This commit is contained in:
parent
71aed67413
commit
071a66495f
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user