Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
itegulov committed May 23, 2024
1 parent c257a38 commit bb1dee5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/node/vm_runner/src/impls/protective_reads.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use std::sync::Arc;

use anyhow::Context;
use async_trait::async_trait;
use tokio::sync::watch;
use zksync_dal::{Connection, ConnectionPool, Core, CoreDal};
use zksync_state_keeper::{MainBatchExecutor, StateKeeperOutputHandler, UpdatesManager};
use zksync_types::{L1BatchNumber, L2ChainId};
Expand All @@ -11,6 +12,7 @@ use crate::{
OutputHandlerFactory, VmRunner, VmRunnerIo, VmRunnerStorage,
};

#[derive(Debug)]
pub struct ProtectiveReadsWriter {
vm_runner: VmRunner,
}
Expand Down Expand Up @@ -44,8 +46,13 @@ impl ProtectiveReadsWriter {
},
))
}

pub async fn run(self, stop_receiver: &watch::Receiver<bool>) -> anyhow::Result<()> {
self.vm_runner.run(stop_receiver).await
}
}

#[derive(Debug)]
pub struct ProtectiveReadsWriterTasks {
pub loader_task: StorageSyncTask<ProtectiveReadsIo>,
pub output_handler_factory_task: ConcurrentOutputHandlerFactoryTask<ProtectiveReadsIo>,
Expand Down

0 comments on commit bb1dee5

Please sign in to comment.