Skip to content

Commit

Permalink
spellcheck + lint
Browse files Browse the repository at this point in the history
  • Loading branch information
itegulov committed Apr 23, 2024
1 parent 05bad1c commit 21cac86
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/lib/dal/src/factory_deps_dal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ impl FactoryDepsDal<'_, '_> {
.await
.unwrap()
.into_iter()
.map(|row| (H256::from_slice(&row.bytecode_hash), row.bytecode.into()))
.map(|row| (H256::from_slice(&row.bytecode_hash), row.bytecode))
.collect()
}
}
5 changes: 3 additions & 2 deletions core/lib/zksync_core/src/vm_runner/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ pub trait VmRunnerStorageLoader: Debug + Send + Sync + 'static {
/// 2. Loads data needed to re-execute the next unprocessed L1 batch.
///
/// Users of `VmRunnerStorage` are not supposed to retain storage access to batches that are less
/// than `L::latest_processed_batch`. Holding one is considered to be an undefined behaviour.
/// than `L::latest_processed_batch`. Holding one is considered to be an undefined behavior.
#[derive(Debug)]
pub struct VmRunnerStorage<L: VmRunnerStorageLoader> {
pool: ConnectionPool<Core>,
Expand Down Expand Up @@ -299,7 +299,8 @@ impl<L: VmRunnerStorageLoader> StorageSyncTask<L> {
}
// We rely on the assumption that no one is holding storage access to a batch with
// number less than `latest_processed_batch`. If they do, RocksDB synchronization below
// will cause them to have an inconsistent view on DB which we consider to be a UB.
// will cause them to have an inconsistent view on DB which we consider to be an
// undefined behavior.
let rocksdb = rocksdb_builder
.synchronize(&mut conn, &stop_receiver, Some(latest_processed_batch))
.await
Expand Down
2 changes: 1 addition & 1 deletion core/lib/zksync_core/src/vm_runner/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ async fn access_vm_runner_storage() -> anyhow::Result<()> {
vm_storage.is_write_initial(&storage_key)
);
}
for (hash, _) in &factory_deps {
for hash in factory_deps.keys() {
assert_eq!(
pg_storage.load_factory_dep(*hash),
vm_storage.load_factory_dep(*hash)
Expand Down

0 comments on commit 21cac86

Please sign in to comment.