Skip to content

Commit

Permalink
zk fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Litteri authored and Ivan Litteri committed Jan 19, 2024
1 parent 16e6a81 commit 1da4e8e
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions core/lib/zksync_core/src/consistency_checker/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down Expand Up @@ -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;
};
Expand Down

0 comments on commit 1da4e8e

Please sign in to comment.