From 2c326770a5b9d58ddcf12e34813a58c06c02405b Mon Sep 17 00:00:00 2001 From: aggstam Date: Sat, 13 Aug 2022 17:56:16 +0300 Subject: [PATCH] src/consensus/task/consensus_sync: missing break added --- src/consensus/task/consensus_sync.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/consensus/task/consensus_sync.rs b/src/consensus/task/consensus_sync.rs index d44b4f740..48031fe8f 100644 --- a/src/consensus/task/consensus_sync.rs +++ b/src/consensus/task/consensus_sync.rs @@ -37,6 +37,8 @@ pub async fn consensus_sync_task(p2p: P2pPtr, state: ValidatorStatePtr) -> Resul } // Node stores response data. state.write().await.consensus = response.consensus.clone(); + + break } } else { warn!("Node is not connected to other nodes, resetting consensus state.");