increase exchange ShufflePeersPrefix to 16, use that as the value of concurrent sync requests

This commit is contained in:
vyzo 2020-09-16 22:09:36 +03:00
parent 8a4b629f40
commit 2a428f09e6
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ const (
WriteReqDeadline = 5 * time.Second WriteReqDeadline = 5 * time.Second
ReadResDeadline = WriteReqDeadline ReadResDeadline = WriteReqDeadline
ReadResMinSpeed = 50 << 10 ReadResMinSpeed = 50 << 10
ShufflePeersPrefix = 5 ShufflePeersPrefix = 16
WriteResDeadline = 60 * time.Second WriteResDeadline = 60 * time.Second
) )

View File

@ -64,7 +64,7 @@ var (
log = logging.Logger("chain") log = logging.Logger("chain")
concurrentSyncRequests = 16 concurrentSyncRequests = exchange.ShufflePeersPrefix
syncRequestBatchSize = 8 syncRequestBatchSize = 8
syncRequestRetries = 5 syncRequestRetries = 5
) )