From bb6bb4a5ca79de4946c309f30cfffe0ebd893021 Mon Sep 17 00:00:00 2001 From: Michael Lumish Date: Tue, 7 Jan 2025 14:24:25 -0800 Subject: [PATCH] grpc-js-xds: Preserve resource type version and nonce when unsubscribing --- packages/grpc-js-xds/src/xds-client.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/grpc-js-xds/src/xds-client.ts b/packages/grpc-js-xds/src/xds-client.ts index 0879d6b2..eb37da97 100644 --- a/packages/grpc-js-xds/src/xds-client.ts +++ b/packages/grpc-js-xds/src/xds-client.ts @@ -457,9 +457,6 @@ class AdsCallState { if (authorityMap.size === 0) { typeState.subscribedResources.delete(name.authority); } - if (typeState.subscribedResources.size === 0) { - this.typeStates.delete(type); - } this.updateNames(type); }