Skip to content

Commit c6c69df

Browse files
authored
Merge pull request #2880 from murgatroid99/grpc-js-xds_preserve_type_state_1.12.x
grpc-js-xds: Preserve resource type version and nonce when unsubscribing (1.12.x)
2 parents bae98b3 + b396b7d commit c6c69df

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

packages/grpc-js-xds/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@grpc/grpc-js-xds",
3-
"version": "1.12.0",
3+
"version": "1.12.1",
44
"description": "Plugin for @grpc/grpc-js. Adds the xds:// URL scheme and associated features.",
55
"main": "build/src/index.js",
66
"scripts": {

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

-3
Original file line numberDiff line numberDiff line change
@@ -457,9 +457,6 @@ class AdsCallState {
457457
if (authorityMap.size === 0) {
458458
typeState.subscribedResources.delete(name.authority);
459459
}
460-
if (typeState.subscribedResources.size === 0) {
461-
this.typeStates.delete(type);
462-
}
463460
this.updateNames(type);
464461
}
465462

0 commit comments

Comments
 (0)