@@ -705,15 +705,6 @@ impl NodeBuilder {
705705 ) -> Result < Node , BuildError > {
706706 let logger = setup_logger ( & self . log_writer_config , & self . config ) ?;
707707
708- let runtime = if let Some ( handle) = self . runtime_handle . as_ref ( ) {
709- Arc :: new ( Runtime :: with_handle ( handle. clone ( ) , Arc :: clone ( & logger) ) )
710- } else {
711- Arc :: new ( Runtime :: new ( Arc :: clone ( & logger) ) . map_err ( |e| {
712- log_error ! ( logger, "Failed to setup tokio runtime: {}" , e) ;
713- BuildError :: RuntimeSetupFailed
714- } ) ?)
715- } ;
716-
717708 let seed_bytes = seed_bytes_from_config (
718709 & self . config ,
719710 self . entropy_source_config . as_ref ( ) ,
@@ -737,18 +728,7 @@ impl NodeBuilder {
737728 BuildError :: KVStoreSetupFailed
738729 } ) ?;
739730
740- build_with_store_internal (
741- config,
742- self . chain_data_source_config . as_ref ( ) ,
743- self . gossip_source_config . as_ref ( ) ,
744- self . liquidity_source_config . as_ref ( ) ,
745- self . pathfinding_scores_sync_config . as_ref ( ) ,
746- self . async_payments_role ,
747- seed_bytes,
748- runtime,
749- logger,
750- Arc :: new ( vss_store) ,
751- )
731+ self . build_with_store ( Arc :: new ( vss_store) )
752732 }
753733
754734 /// Builds a [`Node`] instance according to the options previously configured.
0 commit comments