Skip to content

Commit eb9b314

Browse files
committed
Don't let build_with_store_internal take a runtime parameter
Reverting a1a81db as it won't be needed afterall.
1 parent 8191947 commit eb9b314

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/builder.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,15 +258,13 @@ impl NodeBuilder {
258258
)?;
259259
let config = Arc::new(self.config.clone());
260260

261-
let runtime = Arc::new(RwLock::new(None));
262261
build_with_store_internal(
263262
config,
264263
self.chain_data_source_config.as_ref(),
265264
self.gossip_source_config.as_ref(),
266265
seed_bytes,
267266
logger,
268267
kv_store,
269-
runtime,
270268
)
271269
}
272270
}
@@ -387,7 +385,6 @@ fn build_with_store_internal<K: KVStore + Sync + Send + 'static>(
387385
config: Arc<Config>, chain_data_source_config: Option<&ChainDataSourceConfig>,
388386
gossip_source_config: Option<&GossipSourceConfig>, seed_bytes: [u8; 64],
389387
logger: Arc<FilesystemLogger>, kv_store: Arc<K>,
390-
runtime: Arc<RwLock<Option<tokio::runtime::Runtime>>>,
391388
) -> Result<Node<K>, BuildError> {
392389
// Initialize the on-chain wallet and chain access
393390
let xprv = bitcoin::util::bip32::ExtendedPrivKey::new_master(config.network, &seed_bytes)
@@ -440,6 +437,7 @@ fn build_with_store_internal<K: KVStore + Sync + Send + 'static>(
440437
}
441438
};
442439

440+
let runtime = Arc::new(RwLock::new(None));
443441
let wallet =
444442
Arc::new(Wallet::new(blockchain, bdk_wallet, Arc::clone(&runtime), Arc::clone(&logger)));
445443

0 commit comments

Comments
 (0)