Skip to content

Commit

Permalink
Use operator-rs DUration (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
Techassi authored Oct 16, 2023
1 parent 967c618 commit 7332e31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust/operator-binary/src/hbase_controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ use stackable_operator::{
product_image_selection::ResolvedProductImage,
rbac::{build_rbac_resources, service_account_name},
},
duration::Duration,
k8s_openapi::{api::core::v1::Volume, DeepMerge},
k8s_openapi::{
api::{
Expand Down Expand Up @@ -65,7 +66,6 @@ use std::{
collections::{BTreeMap, HashMap},
str::FromStr,
sync::Arc,
time::Duration,
};
use strum::{EnumDiscriminants, IntoStaticStr};

Expand Down Expand Up @@ -890,7 +890,7 @@ where
}

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

pub fn build_recommended_labels<'a>(
Expand Down

0 comments on commit 7332e31

Please sign in to comment.