@@ -338,7 +338,7 @@ impl NodeBuilder {
338338 /// previously configured.
339339 #[ cfg( any( vss, vss_test) ) ]
340340 pub fn build_with_vss_store (
341- & self , url : String , store_id : String , auth_custom : impl AuthMethod + ' static ,
341+ & self , url : String , store_id : String , auth_custom : Arc < dyn AuthMethod > ,
342342 ) -> Result < Node , BuildError > {
343343 let logger = setup_logger ( & self . config ) ?;
344344
@@ -364,7 +364,7 @@ impl NodeBuilder {
364364
365365 let vss_seed_bytes: [ u8 ; 32 ] = vss_xprv. private_key . secret_bytes ( ) ;
366366
367- let vss_store = Arc :: new ( VssStore :: new ( url, store_id, vss_seed_bytes, auth_custom) ) ;
367+ let vss_store = Arc :: new ( VssStore :: new ( url, store_id, vss_seed_bytes, auth_custom. clone ( ) ) ) ;
368368 build_with_store_internal (
369369 config,
370370 self . chain_data_source_config . as_ref ( ) ,
@@ -520,7 +520,7 @@ impl ArcedNodeBuilder {
520520 /// previously configured.
521521 #[ cfg( any( vss, vss_test) ) ]
522522 pub fn build_with_vss_store (
523- & self , url : String , store_id : String , auth_custom : impl AuthMethod + ' static ,
523+ & self , url : String , store_id : String , auth_custom : Arc < dyn AuthMethod > ,
524524 ) -> Result < Arc < Node > , BuildError > {
525525 self . inner . read ( ) . unwrap ( ) . build_with_vss_store ( url, store_id) . map ( Arc :: new)
526526 }
0 commit comments