From a0e028f788c0845aa62dc1f657d80ba06541c333 Mon Sep 17 00:00:00 2001 From: Michael Lumish Date: Tue, 22 Aug 2023 11:19:23 -0700 Subject: [PATCH] grpc-js-xds: Fix backoff timer reference when handling LRS stream messages --- packages/grpc-js-xds/src/xds-client.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/grpc-js-xds/src/xds-client.ts b/packages/grpc-js-xds/src/xds-client.ts index 2ae9618b3..020f767b5 100644 --- a/packages/grpc-js-xds/src/xds-client.ts +++ b/packages/grpc-js-xds/src/xds-client.ts @@ -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) { @@ -924,8 +924,8 @@ class XdsSingleServerClient { } onLrsStreamReceivedMessage() { - this.adsBackoff.stop(); - this.adsBackoff.reset(); + this.lrsBackoff.stop(); + this.lrsBackoff.reset(); } handleLrsStreamEnd() {