Skip to content

Commit

Permalink
adjust fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Guocork committed Sep 6, 2024
1 parent c98d03c commit 4b5de2a
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions controllers/src/timeout_controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ enum Strategy {
Expired,

/// Handling the retention of the playbook.
Remain(TimeDelta)
Remain(TimeDelta),
}

// Implement the From trait for Strategy.
Expand Down Expand Up @@ -71,10 +71,7 @@ pub async fn new(ctx: &Arc<Context>) {
}
});

rf.applied_objects()
.for_each(|_| future::ready(()))
.await;

rf.applied_objects().for_each(|_| future::ready(())).await;
}

async fn handle(playbook: &Playbook, client: &Client) -> anyhow::Result<()> {
Expand All @@ -93,12 +90,12 @@ async fn handle(playbook: &Playbook, client: &Client) -> anyhow::Result<()> {
if let Some(name) = &playbook.metadata.name {
delete(client, name).await?;
}
},
}
Strategy::Remain(time) => {
if time == Duration::days(3) {
if time == Duration::days(3) {
send_message().await;
}
},
}
}
}
}
Expand Down

0 comments on commit 4b5de2a

Please sign in to comment.