@@ -295,7 +295,7 @@ impl NodeBuilder {
295
295
/// previously configured.
296
296
#[ cfg( any( vss, vss_test) ) ]
297
297
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 > ,
299
299
) -> Result < Node , BuildError > {
300
300
let logger = setup_logger ( & self . config ) ?;
301
301
@@ -321,7 +321,7 @@ impl NodeBuilder {
321
321
322
322
let vss_seed_bytes: [ u8 ; 32 ] = vss_xprv. private_key . secret_bytes ( ) ;
323
323
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 ( ) ) ) ;
325
325
build_with_store_internal (
326
326
config,
327
327
self . chain_data_source_config . as_ref ( ) ,
@@ -462,7 +462,7 @@ impl ArcedNodeBuilder {
462
462
/// previously configured.
463
463
#[ cfg( any( vss, vss_test) ) ]
464
464
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 > ,
466
466
) -> Result < Arc < Node > , BuildError > {
467
467
self . inner . read ( ) . unwrap ( ) . build_with_vss_store ( url, store_id) . map ( Arc :: new)
468
468
}
0 commit comments