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
85e3f43f
Unverified
Commit
85e3f43f
authored
Mar 28, 2019
by
Steven Allen
Committed by
GitHub
Mar 28, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #93 from ipfs/fix/reduce-provide-workers
reduce provide workers to 6
parents
088fd5f7
e5acc1a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
bitswap.go
bitswap.go
+4
-3
No files found.
bitswap.go
View file @
85e3f43f
...
...
@@ -46,14 +46,15 @@ const (
maxProvidersPerRequest
=
3
findProviderDelay
=
1
*
time
.
Second
providerRequestTimeout
=
time
.
Second
*
10
provideTimeout
=
time
.
Second
*
15
sizeBatchRequestChan
=
32
// these requests take at _least_ two minutes at the moment.
provideTimeout
=
time
.
Minute
*
3
sizeBatchRequestChan
=
32
)
var
(
HasBlockBufferSize
=
256
provideKeysBufferSize
=
2048
provideWorkerMax
=
512
provideWorkerMax
=
6
// the 1<<18+15 is to observe old file chunks that are 1<<18 + 14 in size
metricsBuckets
=
[]
float64
{
1
<<
6
,
1
<<
10
,
1
<<
14
,
1
<<
18
,
1
<<
18
+
15
,
1
<<
22
}
...
...
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