diff --git a/core/bin/snapshot_creator/src/main.rs b/core/bin/snapshot_creator/src/main.rs index db521403a1fa..e16667aa0b3b 100644 --- a/core/bin/snapshot_creator/src/main.rs +++ b/core/bin/snapshot_creator/src/main.rs @@ -60,7 +60,7 @@ async fn run(blob_store: Box, pool: ConnectionPool) { factory_deps, }; let key = SnapshotStorageKey { - l1_batch_number: l1_batch_number, + l1_batch_number, chunk_id, }; blob_store.put(key, &result).await.unwrap(); diff --git a/core/lib/zksync_core/src/api_server/web3/namespaces/snapshots.rs b/core/lib/zksync_core/src/api_server/web3/namespaces/snapshots.rs index 4767e654e772..34bc52e6343c 100644 --- a/core/lib/zksync_core/src/api_server/web3/namespaces/snapshots.rs +++ b/core/lib/zksync_core/src/api_server/web3/namespaces/snapshots.rs @@ -71,7 +71,7 @@ impl SnapshotsNamespace { metadata: snapshot_metadata, miniblock_number, last_l1_batch_with_metadata: l1_batch_with_metadata, - chunks: chunks, + chunks, })) } } diff --git a/core/lib/zksync_core/src/sync_layer/snapshots.rs b/core/lib/zksync_core/src/sync_layer/snapshots.rs index 59fd5ab9c634..8e0d58870ff6 100644 --- a/core/lib/zksync_core/src/sync_layer/snapshots.rs +++ b/core/lib/zksync_core/src/sync_layer/snapshots.rs @@ -202,7 +202,7 @@ pub async fn load_from_snapshot_if_needed( if applied_snapshot_status.is_none() { applied_snapshot_status = Some(AppliedSnapshotStatus { - l1_batch_number: l1_batch_number, + l1_batch_number, is_finished: false, last_finished_chunk_id: None, });