diff --git a/crates/xy-supervisor/src/backoff.rs b/crates/xy-supervisor/src/backoff.rs index e4909a5..3d94fc7 100644 --- a/crates/xy-supervisor/src/backoff.rs +++ b/crates/xy-supervisor/src/backoff.rs @@ -16,6 +16,7 @@ impl Backoff { } } + #[allow(clippy::should_implement_trait)] pub fn next(&mut self) -> Duration { let next = match self.current { None => self.initial, diff --git a/crates/xy/src/daemon/handlers.rs b/crates/xy/src/daemon/handlers.rs index 7fae441..f0333fe 100644 --- a/crates/xy/src/daemon/handlers.rs +++ b/crates/xy/src/daemon/handlers.rs @@ -359,20 +359,20 @@ async fn reload(reg: &Registry) -> Result { let mut unchanged = Vec::new(); for name in &existing_names { - if !new_by_name.contains_key(name) { - if let Some(entry) = reg.remove(name).await { - let (tx, rx) = oneshot::channel(); + if !new_by_name.contains_key(name) + && let Some(entry) = reg.remove(name).await + { + let (tx, rx) = oneshot::channel(); - let _ = entry - .handle - .tx - .send(SupervisorCmd::Shutdown { ack: tx }) - .await; + let _ = entry + .handle + .tx + .send(SupervisorCmd::Shutdown { ack: tx }) + .await; - let _ = rx.await; + let _ = rx.await; - removed.push(name.clone()); - } + removed.push(name.clone()); } } diff --git a/libnull.rlib b/libnull.rlib new file mode 100644 index 0000000..d329008 Binary files /dev/null and b/libnull.rlib differ