@@ -338,7 +338,7 @@ impl NodeBuilder {
338
338
/// previously configured.
339
339
#[ cfg( any( vss, vss_test) ) ]
340
340
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 > ,
342
342
) -> Result < Node , BuildError > {
343
343
let logger = setup_logger ( & self . config ) ?;
344
344
@@ -364,7 +364,7 @@ impl NodeBuilder {
364
364
365
365
let vss_seed_bytes: [ u8 ; 32 ] = vss_xprv. private_key . secret_bytes ( ) ;
366
366
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 ( ) ) ) ;
368
368
build_with_store_internal (
369
369
config,
370
370
self . chain_data_source_config . as_ref ( ) ,
@@ -520,7 +520,7 @@ impl ArcedNodeBuilder {
520
520
/// previously configured.
521
521
#[ cfg( any( vss, vss_test) ) ]
522
522
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 > ,
524
524
) -> Result < Arc < Node > , BuildError > {
525
525
self . inner . read ( ) . unwrap ( ) . build_with_vss_store ( url, store_id) . map ( Arc :: new)
526
526
}
0 commit comments