src/consensus/task/consensus_sync: missing break added

This commit is contained in:
aggstam
2022-08-13 17:56:16 +03:00
parent 5168ea18ba
commit 2c326770a5

View File

@@ -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.");