1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-07-01 19:24:14 +08:00

style(bitswap) swap argument order

This commit is contained in:
Brian Tiger Chow
2014-09-21 02:26:06 -07:00
parent 7d62be76ad
commit b5ea124a76
2 changed files with 2 additions and 2 deletions

View File

@ -118,7 +118,7 @@ func NewIpfsNode(cfg *config.Config, online bool) (*IpfsNode, error) {
// TODO(brian): perform this inside NewDHT factory method
dhtService.Handler = route // wire the handler to the service.
exchangeSession = bitswap.NetMessageSession(ctx, exchangeService, local, d, route)
exchangeSession = bitswap.NetMessageSession(ctx, local, exchangeService, route, d)
// TODO(brian): pass a context to initConnections
go initConnections(ctx, cfg, peerstore, route)

View File

@ -20,7 +20,7 @@ import (
// NetMessageSession initializes a BitSwap session that communicates over the
// provided NetMessage service
func NetMessageSession(parent context.Context, s bsnet.NetMessageService, p *peer.Peer, d ds.Datastore, directory bsnet.Routing) exchange.Interface {
func NetMessageSession(parent context.Context, p *peer.Peer, s bsnet.NetMessageService, directory bsnet.Routing, d ds.Datastore) exchange.Interface {
networkAdapter := bsnet.NetMessageAdapter(s, nil)
bs := &bitswap{