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
83d12200
Commit
83d12200
authored
Jan 03, 2015
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bitswap: add self peer.ID
parent
4637c322
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
bitswap.go
bitswap.go
+4
-0
No files found.
bitswap.go
View file @
83d12200
...
...
@@ -61,6 +61,7 @@ func New(parent context.Context, p peer.ID, network bsnet.BitSwapNetwork,
}()
bs
:=
&
bitswap
{
self
:
p
,
blockstore
:
bstore
,
cancelFunc
:
cancelFunc
,
notifications
:
notif
,
...
...
@@ -79,6 +80,9 @@ func New(parent context.Context, p peer.ID, network bsnet.BitSwapNetwork,
// bitswap instances implement the bitswap protocol.
type
bitswap
struct
{
// the ID of the peer to act on behalf of
self
peer
.
ID
// network delivers messages on behalf of the session
network
bsnet
.
BitSwapNetwork
...
...
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