From 0f567b50fc50d9f3a86c0eff1b9addfbda41662e Mon Sep 17 00:00:00 2001 From: Godmode Galactus Date: Tue, 13 Jun 2023 10:57:54 +0200 Subject: [PATCH] removing logging of error on empty channel in block listner --- services/src/block_listenser.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/src/block_listenser.rs b/services/src/block_listenser.rs index 2938d24d..c7810f4d 100644 --- a/services/src/block_listenser.rs +++ b/services/src/block_listenser.rs @@ -296,8 +296,9 @@ impl BlockListener { BLOCKS_IN_RETRY_QUEUE.inc(); }; }, - Err(e) => { - error!("Error on block listner recv stream {e:?}"); + Err(_) => { + // We get error because channel is empty we retry recv again + tokio::time::sleep(Duration::from_millis(1)).await; } } }