Skip to content

Commit

Permalink
Remove ChainWorkerState import
Browse files Browse the repository at this point in the history
The `ChainWorkerActor` is used instead.
  • Loading branch information
jvff committed Jun 15, 2024
1 parent 7335427 commit 1cf06fe
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions linera-core/src/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ use {
};

use crate::{
chain_worker::{ChainWorkerActor, ChainWorkerConfig, ChainWorkerRequest, ChainWorkerState},
chain_worker::{ChainWorkerActor, ChainWorkerConfig, ChainWorkerRequest},
data_types::{ChainInfoQuery, ChainInfoResponse, CrossChainRequest},
value_cache::ValueCache,
};
Expand Down Expand Up @@ -710,21 +710,6 @@ where
.await
}

/// Creates a [`ChainWorkerState`] instance for a specific chain.
async fn create_chain_worker(
&self,
chain_id: ChainId,
) -> Result<ChainWorkerState<StorageClient>, WorkerError> {
ChainWorkerState::load(
self.chain_worker_config.clone(),
self.storage.clone(),
self.recent_hashed_certificate_values.clone(),
self.recent_hashed_blobs.clone(),
chain_id,
)
.await
}

/// Sends a request to the [`ChainWorker`] for a [`ChainId`] and waits for the `Response`.
async fn query_chain_worker<Response>(
&self,
Expand Down

0 comments on commit 1cf06fe

Please sign in to comment.