Skip to content

Commit

Permalink
Don't panic if there are no updates available (googleforgames#1008)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Shadle authored Aug 22, 2024
1 parent 0af0ece commit 58ccf44
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion crates/xds/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,14 @@ impl<C: crate::config::Configuration> ControlPlane<C> {
Err(tokio::sync::broadcast::error::RecvError::Lagged(_)) => {
let tracked_resources: Vec<_> = client_tracker.tracked_resources().collect();
for rt in tracked_resources {
yield responder(None, &rt, &mut client_tracker)?.unwrap();
match responder(None, &rt, &mut client_tracker) {
Ok(Some(res)) => yield res,
Ok(None) => {},
Err(error) => {
tracing::error!(%error, "responder failed to generate response");
continue;
}
}
}
}
}
Expand Down

0 comments on commit 58ccf44

Please sign in to comment.