Skip to content

Commit 42f1e72

Browse files
committed
Wire SignerRegistrationStore in dependencies
1 parent 6ed1902 commit 42f1e72

File tree

1 file changed

+4
-7
lines changed
  • mithril-aggregator/src/dependency_injection

1 file changed

+4
-7
lines changed

mithril-aggregator/src/dependency_injection/builder.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ use warp::Filter;
3636

3737
use crate::{
3838
configuration::{ExecutionEnvironment, LIST_SNAPSHOTS_MAX_ITEMS},
39-
database::provider::{CertificateStoreAdapter, EpochSettingStore, StakePoolStore},
39+
database::provider::{
40+
CertificateStoreAdapter, EpochSettingStore, SignerRegistrationStoreAdapter, StakePoolStore,
41+
},
4042
event_store::{EventMessage, EventStore, TransmitterService},
4143
http_server::routes::router,
4244
stake_distribution_service::{MithrilStakeDistributionService, StakeDistributionService},
@@ -424,12 +426,7 @@ impl DependenciesBuilder {
424426
> = match self.configuration.environment {
425427
ExecutionEnvironment::Production => {
426428
let adapter =
427-
SQLiteAdapter::new("verification_key", self.get_sqlite_connection().await?)
428-
.map_err(|e| DependenciesBuilderError::Initialization {
429-
message: "Cannot create SQLite adapter for VerificationKeyStore."
430-
.to_string(),
431-
error: Some(e.into()),
432-
})?;
429+
SignerRegistrationStoreAdapter::new(self.get_sqlite_connection().await?);
433430

434431
Box::new(adapter)
435432
}

0 commit comments

Comments
 (0)