From e152543bacfbc2b8d9d513373a79821facfd74f1 Mon Sep 17 00:00:00 2001 From: Dan Spencer Date: Fri, 17 Feb 2023 16:41:04 +0000 Subject: [PATCH] Fixed incorrect feature flag usage for the unstable-runtime-subscribe feature Signed-off-by: Dan Spencer --- kube-runtime/src/utils/mod.rs | 4 ++-- kube-runtime/src/utils/watch_ext.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/kube-runtime/src/utils/mod.rs b/kube-runtime/src/utils/mod.rs index 8679ac748..f78dc6eff 100644 --- a/kube-runtime/src/utils/mod.rs +++ b/kube-runtime/src/utils/mod.rs @@ -3,13 +3,13 @@ mod backoff_reset_timer; mod event_flatten; mod stream_backoff; -#[cfg(feature = "unstable_runtime_subscribe")] mod stream_subscribe; +#[cfg(feature = "unstable-runtime-subscribe")] mod stream_subscribe; mod watch_ext; pub use backoff_reset_timer::ResetTimerBackoff; pub use event_flatten::EventFlatten; pub use stream_backoff::StreamBackoff; -#[cfg(feature = "unstable_runtime_subscribe")] +#[cfg(feature = "unstable-runtime-subscribe")] pub use stream_subscribe::StreamSubscribe; pub use watch_ext::WatchStreamExt; diff --git a/kube-runtime/src/utils/watch_ext.rs b/kube-runtime/src/utils/watch_ext.rs index 3ca748ce6..abaef750e 100644 --- a/kube-runtime/src/utils/watch_ext.rs +++ b/kube-runtime/src/utils/watch_ext.rs @@ -1,4 +1,4 @@ -#[cfg(feature = "unstable_runtime_subscribe")] +#[cfg(feature = "unstable-runtime-subscribe")] use crate::utils::stream_subscribe::StreamSubscribe; use crate::{ utils::{event_flatten::EventFlatten, stream_backoff::StreamBackoff}, @@ -93,7 +93,7 @@ pub trait WatchStreamExt: Stream { /// (stream_subscribe, explain_stream) /// } /// ``` - #[cfg(feature = "unstable_runtime_subscribe")] + #[cfg(feature = "unstable-runtime-subscribe")] fn stream_subscribe(self) -> StreamSubscribe where Self: Stream, watcher::Error>> + Send + Sized + 'static,