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-bitswap
Commits
619a9470
Commit
619a9470
authored
Sep 18, 2014
by
Brian Tiger Chow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style(exch:bitswap) rename variable
parent
b30eb0e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
bitswap.go
bitswap.go
+3
-3
No files found.
bitswap.go
View file @
619a9470
...
...
@@ -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
{
a
dapter
:=
bsnet
.
NewNetworkAdapter
(
s
,
nil
)
networkA
dapter
:=
bsnet
.
NewNetworkAdapter
(
s
,
nil
)
bs
:=
&
bitswap
{
blockstore
:
blockstore
.
NewBlockstore
(
d
),
notifications
:
notifications
.
New
(),
strategy
:
strategy
.
New
(),
routing
:
directory
,
sender
:
a
dapter
,
sender
:
networkA
dapter
,
}
a
dapter
.
SetDelegate
(
bs
)
networkA
dapter
.
SetDelegate
(
bs
)
return
bs
}
...
...
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