feat: don't use nightly features

This commit is contained in:
2026-01-12 10:39:59 +01:00
parent f0d2180c4b
commit c0f06beb4d
6 changed files with 8 additions and 17 deletions

View File

@@ -103,6 +103,7 @@ impl ProcessOperator {
impl Operator for ProcessOperator {
type Specifications = Specifications;
type Error = anyhow::Error;
async fn reconcile(
&self,
@@ -127,10 +128,7 @@ impl Operator for ProcessOperator {
Some(ProcessState::Running) => {
// Process is running as desired
manifest_state.status.status = ManifestStatusState::Running;
tracing::info!(
"Process {} is running as desired",
spec.name
);
tracing::info!("Process {} is running as desired", spec.name);
}
Some(ProcessState::Pending) | Some(ProcessState::Stopped) => {
// Process is pending or stopped, start it
@@ -153,10 +151,7 @@ impl Operator for ProcessOperator {
}
None => {
// Process doesn't exist in manager, recreate
tracing::info!(
"Process {} not found, creating new",
spec.name
);
tracing::info!("Process {} not found, creating new", spec.name);
let new_id = self
.process_manager
.add_process(Process::new(WorkerProcess {
@@ -194,10 +189,7 @@ impl Operator for ProcessOperator {
match status {
Some(ProcessState::Running) => {
// Process is running but should be stopped
tracing::info!(
"Stopping process {} as requested",
spec.name
);
tracing::info!("Stopping process {} as requested", spec.name);
manifest_state.status.status = ManifestStatusState::Stopping;
self.process_manager.stop_process(id).await?;
}