Skip to content

Commit d26b8fb

Browse files
committed
f Give BDK a dedicated runtime in sync_wallets
1 parent 83e3325 commit d26b8fb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,11 @@ impl Node {
801801

802802
let runtime = runtime_lock.as_ref().unwrap();
803803
tokio::task::block_in_place(move || {
804-
runtime.tokio_runtime.block_on(async move { wallet.sync().await })
804+
tokio::runtime::Builder::new_current_thread()
805+
.enable_all()
806+
.build()
807+
.unwrap()
808+
.block_on(async move { wallet.sync().await })
805809
})?;
806810

807811
tokio::task::block_in_place(move || {

0 commit comments

Comments
 (0)