From 64cf8a1d890cbb0e0bc7bef8912c6c3254413c98 Mon Sep 17 00:00:00 2001 From: tomg10 Date: Wed, 18 Dec 2024 17:24:51 +0100 Subject: [PATCH] lint --- core/node/l1_recovery/src/processor/db_recovery.rs | 8 +++----- core/node/l1_recovery/src/processor/snapshot/mod.rs | 8 ++------ 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/core/node/l1_recovery/src/processor/db_recovery.rs b/core/node/l1_recovery/src/processor/db_recovery.rs index 089f3ac7d6cb..c024cb885f3d 100644 --- a/core/node/l1_recovery/src/processor/db_recovery.rs +++ b/core/node/l1_recovery/src/processor/db_recovery.rs @@ -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; @@ -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 @@ -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 diff --git a/core/node/l1_recovery/src/processor/snapshot/mod.rs b/core/node/l1_recovery/src/processor/snapshot/mod.rs index 0a51f5fa9be1..655a7fb6341c 100644 --- a/core/node/l1_recovery/src/processor/snapshot/mod.rs +++ b/core/node/l1_recovery/src/processor/snapshot/mod.rs @@ -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, @@ -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}, };