Skip to content

Commit

Permalink
Use operator-rs Duration (#478)
Browse files Browse the repository at this point in the history
  • Loading branch information
Techassi authored Oct 16, 2023
1 parent 33e1ebb commit 23df953
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust/operator-binary/src/druid_controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ use stackable_operator::{
rbac::{build_rbac_resources, service_account_name},
s3::{S3AccessStyle, S3ConnectionSpec},
},
duration::Duration,
k8s_openapi::{
api::{
apps::v1::{StatefulSet, StatefulSetSpec},
Expand Down Expand Up @@ -74,7 +75,6 @@ use std::{
ops::Deref,
str::FromStr,
sync::Arc,
time::Duration,
};
use strum::{EnumDiscriminants, IntoStaticStr};

Expand Down Expand Up @@ -1143,7 +1143,7 @@ fn add_s3_volume_and_volume_mounts(
}

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

#[cfg(test)]
Expand Down

0 comments on commit 23df953

Please sign in to comment.