From 8f6ce4f88d53bcdc56ac4aaa4e32077612674f13 Mon Sep 17 00:00:00 2001 From: Jacek Sieka Date: Mon, 25 Jan 2021 13:08:20 +0100 Subject: [PATCH] shorten idle timeout this introduces the change more gently, to avoid adverse effects - the timeout value can subsequently be tuned based on further experimentation. --- beacon_chain/eth2_processor.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beacon_chain/eth2_processor.nim b/beacon_chain/eth2_processor.nim index 79608c78c..567f9b836 100644 --- a/beacon_chain/eth2_processor.nim +++ b/beacon_chain/eth2_processor.nim @@ -519,7 +519,7 @@ proc runQueueProcessingLoop*(self: ref Eth2Processor) {.async.} = # taking up all CPU - we don't want to _completely_ stop processing blocks # in this case (attestations will get dropped) - doing so also allows us # to benefit from more batching / larger network reads when under load. - discard await idleAsync().withTimeout(100.milliseconds) + discard await idleAsync().withTimeout(10.milliseconds) # Avoid one more `await` when there's work to do if not (blockFut.finished or aggregateFut.finished or attestationFut.finished):