feat(protocol): wait-for schema and KDL parsing

This commit is contained in:
2026-08-07 15:33:19 +02:00
parent c000a00f05
commit fbb58ebfef
4 changed files with 262 additions and 5 deletions
+4 -3
View File
@@ -22,7 +22,7 @@ pub enum SupervisorCmd {
ack: oneshot::Sender<()>,
},
Reconfigure {
new: ServerConfig,
new: Box<ServerConfig>,
ack: oneshot::Sender<()>,
},
Shutdown {
@@ -170,7 +170,7 @@ impl<S: Spawner> SupervisorTask<S> {
let _ = ack.send(());
}
SupervisorCmd::Reconfigure { new, ack } => {
self.cfg = new;
self.cfg = *new;
self.backoff =
Backoff::new(self.cfg.restart.backoff_initial, self.cfg.restart.backoff_max);
self.retry_window = RetryWindow::new(
@@ -248,7 +248,7 @@ impl<S: Spawner> SupervisorTask<S> {
Action::RetryNow
}
Some(SupervisorCmd::Reconfigure { new, ack }) => {
self.cfg = new;
self.cfg = *new;
self.backoff = Backoff::new(
self.cfg.restart.backoff_initial,
self.cfg.restart.backoff_max,
@@ -390,6 +390,7 @@ mod tests {
stop: StopConfig {
grace: Duration::from_millis(50),
},
wait_for: None,
}
}