@@ -33,6 +33,7 @@ pub trait Service<Config, InnerError> {
3333 monitoring_config : MonitoringConfig ,
3434 shutdown : ShutdownSender ,
3535 constructor : Box < dyn Fn ( VaultId ) -> Result < DynBitcoinCoreApi , BitcoinError > + Send + Sync > ,
36+ keyname : String ,
3637 ) -> Self ;
3738 async fn start ( & self ) -> Result < ( ) , Error < InnerError > > ;
3839}
@@ -46,6 +47,7 @@ pub struct ConnectionManager<Config: Clone, F: Fn()> {
4647 monitoring_config : MonitoringConfig ,
4748 config : Config ,
4849 increment_restart_counter : F ,
50+ db_path : String ,
4951}
5052
5153impl < Config : Clone + Send + ' static , F : Fn ( ) > ConnectionManager < Config , F > {
@@ -59,6 +61,7 @@ impl<Config: Clone + Send + 'static, F: Fn()> ConnectionManager<Config, F> {
5961 monitoring_config : MonitoringConfig ,
6062 config : Config ,
6163 increment_restart_counter : F ,
64+ db_path : String ,
6265 ) -> Self {
6366 Self {
6467 signer,
@@ -69,6 +72,7 @@ impl<Config: Clone + Send + 'static, F: Fn()> ConnectionManager<Config, F> {
6972 monitoring_config,
7073 config,
7174 increment_restart_counter,
75+ db_path,
7276 }
7377 }
7478
@@ -122,6 +126,7 @@ impl<Config: Clone + Send + 'static, F: Fn()> ConnectionManager<Config, F> {
122126 self . monitoring_config . clone ( ) ,
123127 shutdown_tx. clone ( ) ,
124128 Box :: new ( constructor) ,
129+ self . db_path . clone ( ) ,
125130 ) ;
126131 match service. start ( ) . await {
127132 Err ( err @ Error :: Abort ( _) ) => {
0 commit comments