Skip to content

Commit d1cb2d5

Browse files
authored
Merge pull request #2553 from murgatroid99/grpc-js-xds_ads_backoff_fix
grpc-js-xds: Fix backoff timer reference when handling LRS stream messages
2 parents 7ca0af6 + a0e028f commit d1cb2d5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/grpc-js-xds/src/xds-client.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -602,9 +602,9 @@ class ClusterLoadReportMap {
602602
* Get the indicated map entry if it exists, or create a new one if it does
603603
* not. Increments the refcount of that entry, so a call to this method
604604
* should correspond to a later call to unref
605-
* @param clusterName
606-
* @param edsServiceName
607-
* @returns
605+
* @param clusterName
606+
* @param edsServiceName
607+
* @returns
608608
*/
609609
getOrCreate(clusterName: string, edsServiceName: string): ClusterLoadReport {
610610
for (const statsObj of this.statsMap) {
@@ -924,8 +924,8 @@ class XdsSingleServerClient {
924924
}
925925

926926
onLrsStreamReceivedMessage() {
927-
this.adsBackoff.stop();
928-
this.adsBackoff.reset();
927+
this.lrsBackoff.stop();
928+
this.lrsBackoff.reset();
929929
}
930930

931931
handleLrsStreamEnd() {

0 commit comments

Comments
 (0)