Skip to content

Commit

Permalink
Merge pull request #2553 from murgatroid99/grpc-js-xds_ads_backoff_fix
Browse files Browse the repository at this point in the history
grpc-js-xds: Fix backoff timer reference when handling LRS stream messages
  • Loading branch information
murgatroid99 authored Aug 22, 2023
2 parents 7ca0af6 + a0e028f commit d1cb2d5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/grpc-js-xds/src/xds-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -602,9 +602,9 @@ class ClusterLoadReportMap {
* Get the indicated map entry if it exists, or create a new one if it does
* not. Increments the refcount of that entry, so a call to this method
* should correspond to a later call to unref
* @param clusterName
* @param edsServiceName
* @returns
* @param clusterName
* @param edsServiceName
* @returns
*/
getOrCreate(clusterName: string, edsServiceName: string): ClusterLoadReport {
for (const statsObj of this.statsMap) {
Expand Down Expand Up @@ -924,8 +924,8 @@ class XdsSingleServerClient {
}

onLrsStreamReceivedMessage() {
this.adsBackoff.stop();
this.adsBackoff.reset();
this.lrsBackoff.stop();
this.lrsBackoff.reset();
}

handleLrsStreamEnd() {
Expand Down

0 comments on commit d1cb2d5

Please sign in to comment.