Suppress supervisor.handle warning

This commit is contained in:
Félix Saparelli 2021-12-10 00:53:18 +13:00
parent 289f76ae6c
commit f8250f47de
No known key found for this signature in database
GPG Key ID: B948C4BAE44FC474
1 changed files with 3 additions and 1 deletions

View File

@ -38,7 +38,9 @@ enum Intervention {
pub struct Supervisor {
id: u32,
intervene: Sender<Intervention>,
handle: JoinHandle<()>,
#[allow(dead_code)]
handle: JoinHandle<()>, // see TODO in ::spawn()
// why this and not a watch::channel? two reasons:
// 1. I tried the watch and ran into some race conditions???