From 72272acf84d1ae9395629345712d1522656e677a Mon Sep 17 00:00:00 2001 From: Techassi Date: Wed, 11 Oct 2023 14:24:26 +0200 Subject: [PATCH] Use operator-rs Duration --- rust/operator-binary/src/controller.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/operator-binary/src/controller.rs b/rust/operator-binary/src/controller.rs index f8657859..d7074f27 100644 --- a/rust/operator-binary/src/controller.rs +++ b/rust/operator-binary/src/controller.rs @@ -30,6 +30,7 @@ use stackable_operator::{ rbac::build_rbac_resources, s3::{S3AccessStyle, S3ConnectionSpec}, }, + duration::Duration, k8s_openapi::{ api::{ apps::v1::{StatefulSet, StatefulSetSpec}, @@ -67,7 +68,6 @@ use std::{ hash::Hasher, str::FromStr, sync::Arc, - time::Duration, }; use strum::EnumDiscriminants; use tracing::warn; @@ -943,7 +943,7 @@ fn build_metastore_rolegroup_statefulset( } pub fn error_policy(_obj: Arc, _error: &Error, _ctx: Arc) -> Action { - Action::requeue(Duration::from_secs(5)) + Action::requeue(*Duration::from_secs(5)) } pub fn service_ports() -> Vec {