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
0ab1700b
Commit
0ab1700b
authored
Nov 17, 2018
by
Cédric Moreau
Browse files
[enh] Make `--slow` option even slower
parent
dcb10b19
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/modules/crawler/lib/sync/P2PSyncDownloader.ts
View file @
0ab1700b
...
...
@@ -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
?
15
000
:
5000
;
private
MAX_DELAY_PER_DOWNLOAD
=
cliprogram
.
slow
?
2
*
60
000
:
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