Skip to content

Commit

Permalink
Use stackable Duration for Action::requeue
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernauer committed Sep 19, 2023
1 parent af9bb15 commit a266a22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rust/operator-binary/src/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ use stackable_operator::{
opa::OpaApiVersion, product_image_selection::ResolvedProductImage,
rbac::build_rbac_resources,
},
duration::Duration,
k8s_openapi::{
api::{
apps::v1::{StatefulSet, StatefulSetSpec},
Expand Down Expand Up @@ -1143,7 +1144,7 @@ fn build_rolegroup_service(
}

pub fn error_policy(_obj: Arc<TrinoCluster>, _error: &Error, _ctx: Arc<Ctx>) -> Action {
Action::requeue(std::time::Duration::from_secs(5))
Action::requeue(*Duration::from_secs(5))
}

/// Give a secret name and an optional key in the secret to use.
Expand Down

0 comments on commit a266a22

Please sign in to comment.