Skip to content

Commit d46efb6

Browse files
authored
Merge pull request #213 from G8XSU/multithread
Use Multi threaded runtime in `sync_wallets`
2 parents fc09bfb + c31b29f commit d46efb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,7 @@ impl<K: KVStore + Sync + Send + 'static> Node<K> {
10031003
];
10041004

10051005
tokio::task::block_in_place(move || {
1006-
tokio::runtime::Builder::new_current_thread().enable_all().build().unwrap().block_on(
1006+
tokio::runtime::Builder::new_multi_thread().enable_all().build().unwrap().block_on(
10071007
async move {
10081008
let now = Instant::now();
10091009
match wallet.sync().await {

0 commit comments

Comments
 (0)