Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
timothe
duniter
Commits
efee101d
Commit
efee101d
authored
Nov 20, 2018
by
Cédric Moreau
Browse files
[fix] `sync`: Wait up to 15s for the downloading of a chunk in normal mode
parent
d2262f9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/modules/crawler/lib/sync/P2PSyncDownloader.ts
View file @
efee101d
...
...
@@ -18,7 +18,7 @@ import {P2pCandidate} from "./p2p/p2p-candidate"
export
class
P2PSyncDownloader
extends
ASyncDownloader
implements
ISyncDownloader
{
private
PARALLEL_PER_CHUNK
=
1
;
private
MAX_DELAY_PER_DOWNLOAD
=
cliprogram
.
slow
?
2
*
60000
:
5000
;
private
MAX_DELAY_PER_DOWNLOAD
=
cliprogram
.
slow
?
2
*
60000
:
1
5000
;
private
TOO_LONG_TIME_DOWNLOAD
:
string
private
nbBlocksToDownload
:
number
private
numberOfChunksToDownload
:
number
...
...
Write
Preview
Supports
Markdown
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