Merge pull request #1035 from TheBlueMatt/2021-08-faster-pings
[rust-lightning] / lightning-background-processor / src / lib.rs
index c75c47262e51d2873a335acc37518bccd6ed2984..8af4cc6b3e51727c7c8261604342a8485bd6cc24 100644 (file)
@@ -39,6 +39,7 @@ use std::ops::Deref;
 /// then there is a risk of channels force-closing on startup when the manager realizes it's
 /// outdated. However, as long as `ChannelMonitor` backups are sound, no funds besides those used
 /// for unilateral chain closure fees are at risk.
+#[must_use = "BackgroundProcessor will immediately stop on drop. It should be stored until shutdown."]
 pub struct BackgroundProcessor {
        stop_thread: Arc<AtomicBool>,
        thread_handle: Option<JoinHandle<Result<(), std::io::Error>>>,