From d874f85710ccfc2191c248eb3f65ba2ca5208eac Mon Sep 17 00:00:00 2001 From: tycho garen Date: Tue, 22 Jun 2021 14:37:53 -0400 Subject: [PATCH] keep state sync queue sizes smaller --- internal/statesync/reactor.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/statesync/reactor.go b/internal/statesync/reactor.go index 26ddf1809..1e35c1c3a 100644 --- a/internal/statesync/reactor.go +++ b/internal/statesync/reactor.go @@ -41,7 +41,7 @@ var ( Priority: 6, SendQueueCapacity: 10, RecvMessageCapacity: snapshotMsgSize, - RecvBufferCapacity: 4096, + RecvBufferCapacity: 128, MaxSendBytes: 400, }, }, @@ -52,7 +52,7 @@ var ( Priority: 3, SendQueueCapacity: 4, RecvMessageCapacity: chunkMsgSize, - RecvBufferCapacity: 4096, + RecvBufferCapacity: 128, MaxSendBytes: 400, }, }, @@ -63,7 +63,7 @@ var ( Priority: 2, SendQueueCapacity: 10, RecvMessageCapacity: lightBlockMsgSize, - RecvBufferCapacity: 4096, + RecvBufferCapacity: 128, MaxSendBytes: 400, }, },