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
6d88f9aa
Commit
6d88f9aa
authored
Dec 16, 2014
by
Brian Tiger Chow
Committed by
Juan Batiz-Benet
Dec 17, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style: line wrapping
License: MIT Signed-off-by:
Brian Tiger Chow
<
brian@perfmode.com
>
parent
9fac2f30
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
bitswap.go
bitswap.go
+4
-4
No files found.
bitswap.go
View file @
6d88f9aa
...
...
@@ -32,10 +32,10 @@ var providerRequestTimeout = time.Second * 10
var
hasBlockTimeout
=
time
.
Second
*
15
var
rebroadcastDelay
=
time
.
Second
*
10
// New initializes a BitSwap instance that communicates over the
//
provided
BitSwapNetwork. This function registers the returned instance as
//
the network
delegate.
// Runs until context is cancelled
// New initializes a BitSwap instance that communicates over the
provided
// BitSwapNetwork. This function registers the returned instance as
the network
// delegate.
// Runs until context is cancelled
.
func
New
(
parent
context
.
Context
,
p
peer
.
Peer
,
network
bsnet
.
BitSwapNetwork
,
routing
bsnet
.
Routing
,
bstore
blockstore
.
Blockstore
,
nice
bool
)
exchange
.
Interface
{
...
...
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