Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
b5ea124a
Commit
b5ea124a
authored
Sep 21, 2014
by
Brian Tiger Chow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style(bitswap) swap argument order
parent
7d62be76
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
core/core.go
core/core.go
+1
-1
exchange/bitswap/bitswap.go
exchange/bitswap/bitswap.go
+1
-1
No files found.
core/core.go
View file @
b5ea124a
...
...
@@ -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
)
...
...
exchange/bitswap/bitswap.go
View file @
b5ea124a
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment