We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 60dffa8 + 2b006ad commit a185c7eCopy full SHA for a185c7e
src/lib.rs
@@ -640,6 +640,8 @@ impl Node {
640
/// After this returns most API methods will return [`Error::NotRunning`].
641
pub fn stop(&self) -> Result<(), Error> {
642
let runtime = self.runtime.write().unwrap().take().ok_or(Error::NotRunning)?;
643
+ #[cfg(tokio_unstable)]
644
+ let metrics_runtime = Arc::clone(&runtime);
645
646
log_info!(self.logger, "Shutting down LDK Node with node ID {}...", self.node_id());
647
@@ -702,7 +704,7 @@ impl Node {
702
704
log_trace!(
703
705
self.logger,
706
"Active runtime tasks left prior to shutdown: {}",
- runtime.metrics().active_tasks_count()
707
+ metrics_runtime.metrics().active_tasks_count()
708
);
709
}
710
0 commit comments