Skip to content

Commit 35cba31

Browse files
committed
fix: compile with tokio_unstable
1 parent 2156611 commit 35cba31

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,8 @@ impl Node {
666666
// FIXME: For now, we wait up to 100 secs (BDK_WALLET_SYNC_TIMEOUT_SECS + 10) to allow
667667
// event handling to exit gracefully even if it was blocked on the BDK wallet syncing. We
668668
// should drop this considerably post upgrading to BDK 1.0.
669+
#[cfg(tokio_unstable)]
670+
let metrics_runtime = runtime.clone();
669671
let timeout_res = tokio::task::block_in_place(move || {
670672
runtime.block_on(async {
671673
tokio::time::timeout(
@@ -702,7 +704,7 @@ impl Node {
702704
log_trace!(
703705
self.logger,
704706
"Active runtime tasks left prior to shutdown: {}",
705-
runtime.metrics().active_tasks_count()
707+
metrics_runtime.metrics().active_tasks_count()
706708
);
707709
}
708710

0 commit comments

Comments
 (0)