From 2a428f09e67f01bdd927f09e9e40f758b2bd60e1 Mon Sep 17 00:00:00 2001 From: vyzo Date: Wed, 16 Sep 2020 22:09:36 +0300 Subject: [PATCH] increase exchange ShufflePeersPrefix to 16, use that as the value of concurrent sync requests --- chain/exchange/protocol.go | 2 +- chain/sync.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chain/exchange/protocol.go b/chain/exchange/protocol.go index ca4b61836..ac02cf60f 100644 --- a/chain/exchange/protocol.go +++ b/chain/exchange/protocol.go @@ -40,7 +40,7 @@ const ( WriteReqDeadline = 5 * time.Second ReadResDeadline = WriteReqDeadline ReadResMinSpeed = 50 << 10 - ShufflePeersPrefix = 5 + ShufflePeersPrefix = 16 WriteResDeadline = 60 * time.Second ) diff --git a/chain/sync.go b/chain/sync.go index 554f81ee9..0ab8ac183 100644 --- a/chain/sync.go +++ b/chain/sync.go @@ -64,7 +64,7 @@ var ( log = logging.Logger("chain") - concurrentSyncRequests = 16 + concurrentSyncRequests = exchange.ShufflePeersPrefix syncRequestBatchSize = 8 syncRequestRetries = 5 )