From 1da4e8ec0d5bb1096268215fa9847c6df21123e8 Mon Sep 17 00:00:00 2001 From: Ivan Litteri Date: Fri, 19 Jan 2024 13:15:25 -0300 Subject: [PATCH] zk fmt --- core/lib/zksync_core/src/consistency_checker/mod.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/core/lib/zksync_core/src/consistency_checker/mod.rs b/core/lib/zksync_core/src/consistency_checker/mod.rs index 072770ac83f1..768684e5fbaf 100644 --- a/core/lib/zksync_core/src/consistency_checker/mod.rs +++ b/core/lib/zksync_core/src/consistency_checker/mod.rs @@ -135,11 +135,7 @@ pub struct ConsistencyChecker { impl ConsistencyChecker { const DEFAULT_SLEEP_INTERVAL: Duration = Duration::from_secs(5); - pub fn new( - web3_url: &str, - max_batches_to_recheck: u32, - pool: ConnectionPool, - ) -> Self { + pub fn new(web3_url: &str, max_batches_to_recheck: u32, pool: ConnectionPool) -> Self { let web3 = QueryClient::new(web3_url).unwrap(); Self { contract: zksync_contracts::zksync_contract(), @@ -289,9 +285,7 @@ impl ConsistencyChecker { // The batch might be already committed but not yet processed by the external node's tree // OR the batch might be processed by the external node's tree but not yet committed. // We need both. - let Some(local) = - LocalL1BatchCommitData::new(&mut storage, batch_number).await? - else { + let Some(local) = LocalL1BatchCommitData::new(&mut storage, batch_number).await? else { tokio::time::sleep(self.sleep_interval).await; continue; };