Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tomg10 committed Dec 18, 2024
1 parent b6a7b06 commit 64cf8a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
8 changes: 3 additions & 5 deletions core/node/l1_recovery/src/processor/db_recovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ use std::{default::Default, fs, path::PathBuf, sync::Arc};
use chrono::DateTime;
use tempfile::TempDir;
use tokio::sync::watch;
use zksync_basic_types::{
protocol_version::ProtocolVersionId, Address, L1BatchNumber, L2BlockNumber, H256, U256,
};
use zksync_basic_types::{Address, L1BatchNumber, L2BlockNumber, H256, U256};
use zksync_dal::{eth_watcher_dal::EventType, ConnectionPool, Core, CoreDal};
use zksync_eth_client::EthInterface;
use zksync_object_store::ObjectStore;
Expand Down Expand Up @@ -51,7 +49,7 @@ pub async fn recover_latest_l1_batch(
{
return;
}
let mut latest_protocol_version = storage
let latest_protocol_version = storage
.protocol_versions_dal()
.latest_semantic_version()
.await
Expand Down Expand Up @@ -285,7 +283,7 @@ pub async fn recover_latest_priority_tx(
)
.unwrap();
let mut storage = connection_pool.connection().await.unwrap();
let mut latest_protocol_version = storage
let latest_protocol_version = storage
.protocol_versions_dal()
.latest_semantic_version()
.await
Expand Down
8 changes: 2 additions & 6 deletions core/node/l1_recovery/src/processor/snapshot/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ use tokio::sync::watch;
use zksync_basic_types::{
h256_to_u256, u256_to_h256,
web3::{keccak256, Bytes},
AccountTreeId, Address, L1BatchNumber, H256, U256,
AccountTreeId, L1BatchNumber, H256, U256,
};
use zksync_merkle_tree::TreeEntry;
use zksync_object_store::ObjectStore;
use zksync_types::{
block::unpack_block_info,
Expand All @@ -23,10 +22,7 @@ use zksync_vm_interface::L2Block;

use crate::{
l1_fetcher::types::CommitBlock,
processor::{
genesis::{get_genesis_factory_deps, process_raw_entries},
tree::TreeProcessor,
},
processor::{genesis::get_genesis_factory_deps, tree::TreeProcessor},
storage::{snapshot::SnapshotDatabase, snapshot_columns, INDEX_TO_KEY_MAP},
};

Expand Down

0 comments on commit 64cf8a1

Please sign in to comment.