@@ -295,7 +295,7 @@ impl NodeBuilder {
295295 /// previously configured.
296296 #[ cfg( any( vss, vss_test) ) ]
297297 pub fn build_with_vss_store (
298- & self , url : String , store_id : String , auth_custom : impl AuthMethod + ' static ,
298+ & self , url : String , store_id : String , auth_custom : Arc < dyn AuthMethod > ,
299299 ) -> Result < Node , BuildError > {
300300 let logger = setup_logger ( & self . config ) ?;
301301
@@ -321,7 +321,7 @@ impl NodeBuilder {
321321
322322 let vss_seed_bytes: [ u8 ; 32 ] = vss_xprv. private_key . secret_bytes ( ) ;
323323
324- let vss_store = Arc :: new ( VssStore :: new ( url, store_id, vss_seed_bytes, auth_custom) ) ;
324+ let vss_store = Arc :: new ( VssStore :: new ( url, store_id, vss_seed_bytes, auth_custom. clone ( ) ) ) ;
325325 build_with_store_internal (
326326 config,
327327 self . chain_data_source_config . as_ref ( ) ,
@@ -462,7 +462,7 @@ impl ArcedNodeBuilder {
462462 /// previously configured.
463463 #[ cfg( any( vss, vss_test) ) ]
464464 pub fn build_with_vss_store (
465- & self , url : String , store_id : String , auth_custom : impl AuthMethod + ' static ,
465+ & self , url : String , store_id : String , auth_custom : Arc < dyn AuthMethod > ,
466466 ) -> Result < Arc < Node > , BuildError > {
467467 self . inner . read ( ) . unwrap ( ) . build_with_vss_store ( url, store_id) . map ( Arc :: new)
468468 }
0 commit comments