Skip to content

Commit

Permalink
Cleanup handleStreamRestarted
Browse files Browse the repository at this point in the history
  • Loading branch information
larry-safran committed Nov 26, 2024
1 parent ea66db8 commit a027b67
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions xds/src/main/java/io/grpc/xds/client/XdsClientImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -960,11 +960,9 @@ public void handleStreamRestarted(ServerInfo serverInfo) {
return;
}

for (Map.Entry<String, List<ControlPlaneClient>> me : activatedCpClients.entrySet()) {
if (me.getValue().contains(controlPlaneClient)) {
if (getActiveCpc(me.getKey()) == controlPlaneClient) {
startSubscriberTimersIfNeeded(me.getKey());
}
for (String authority : activatedCpClients.keySet()) {
if (getActiveCpc(authority) == controlPlaneClient) {
startSubscriberTimersIfNeeded(authority);
}
}
}
Expand Down

0 comments on commit a027b67

Please sign in to comment.