Skip to content

Commit

Permalink
@clux's feedback
Browse files Browse the repository at this point in the history
Co-authored-by: Eirik A <[email protected]>
Signed-off-by: Matei David <[email protected]>
  • Loading branch information
mateiidavid and clux authored Apr 3, 2024
1 parent d69213a commit 21dbbae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/shared_stream_controllers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ async fn reconcile_metadata(pod: Arc<Pod>, ctx: Arc<Data>) -> Result<Action, Err
if pod.name_any() == "kube-system" {
return Ok(Action::requeue(Duration::from_secs(300)));
}
let labels = pod.metadata.labels.clone().unwrap_or_else(|| Default::default());
let labels = pod.metadata.labels();
if labels.len() == 0 {
return Ok(Action::requeue(Duration::from_secs(180)));
}
Expand Down
2 changes: 1 addition & 1 deletion kube-runtime/src/utils/watch_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ pub trait WatchStreamExt: Stream {
Reflect::new(self, writer)
}

fn reflect_dispatch<K>(self, writer: Writer<K>) -> impl Stream<Item = Self::Item>
fn reflect_shared<K>(self, writer: Writer<K>) -> impl Stream<Item = Self::Item>
where
Self: Stream<Item = watcher::Result<watcher::Event<K>>> + Sized,
K: Resource + Clone + 'static,
Expand Down

0 comments on commit 21dbbae

Please sign in to comment.