File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments