File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
mithril-aggregator/src/dependency_injection Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ use warp::Filter;
36
36
37
37
use crate :: {
38
38
configuration:: { ExecutionEnvironment , LIST_SNAPSHOTS_MAX_ITEMS } ,
39
- database:: provider:: { EpochSettingStore , StakePoolStore } ,
39
+ database:: provider:: { CertificateStoreAdapter , EpochSettingStore , StakePoolStore } ,
40
40
event_store:: { EventMessage , EventStore , TransmitterService } ,
41
41
http_server:: routes:: router,
42
42
stake_distribution_service:: { MithrilStakeDistributionService , StakeDistributionService } ,
@@ -377,13 +377,7 @@ impl DependenciesBuilder {
377
377
let adapter: Box < dyn StoreAdapter < Key = String , Record = Certificate > > =
378
378
match self . configuration . environment {
379
379
ExecutionEnvironment :: Production => {
380
- let adapter =
381
- SQLiteAdapter :: new ( "certificate" , self . get_sqlite_connection ( ) . await ?)
382
- . map_err ( |e| DependenciesBuilderError :: Initialization {
383
- message : "Cannot create SQLite adapter for Certificate Store."
384
- . to_string ( ) ,
385
- error : Some ( e. into ( ) ) ,
386
- } ) ?;
380
+ let adapter = CertificateStoreAdapter :: new ( self . get_sqlite_connection ( ) . await ?) ;
387
381
388
382
Box :: new ( adapter)
389
383
}
You can’t perform that action at this time.
0 commit comments