feat(protocol): wait-for schema and KDL parsing
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user