Skip to content

Commit 8174e71

Browse files
apollo_proof_manager: implement component starter
1 parent 9907d9d commit 8174e71

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/apollo_proof_manager/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ workspace = true
1313

1414
[dependencies]
1515
apollo_proof_manager_config.workspace = true
16+
apollo_infra.workspace = true
17+
async-trait.workspace = true
1618
hex.workspace = true
1719
starknet-types-core = { workspace = true, features = ["hash"] }
1820
starknet_api.workspace = true

crates/apollo_proof_manager/src/proof_manager.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
use apollo_proof_manager_config::config::ProofManagerConfig;
2+
use apollo_infra::component_definitions::{default_component_start_fn, ComponentStarter};
3+
use async_trait::async_trait;
24
use starknet_api::transaction::fields::Proof;
35
use starknet_types_core::felt::Felt;
46

@@ -32,3 +34,10 @@ impl ProofStorage for ProofManager {
3234
self.proof_storage.contains_proof(facts_hash)
3335
}
3436
}
37+
38+
#[async_trait]
39+
impl ComponentStarter for ProofManager {
40+
async fn start(&mut self) {
41+
default_component_start_fn::<Self>().await;
42+
}
43+
}

0 commit comments

Comments
 (0)