Skip to content

Commit

Permalink
Merge pull request #2564 from murgatroid99/grpc-js_ping_first_equalit…
Browse files Browse the repository at this point in the history
…y_check_backport

grpc-js: Fix pick-first-load-balancer pick subchannel lost state listener (1.9.x)
  • Loading branch information
murgatroid99 committed Aug 31, 2023
2 parents 4475a9f + 2fe961d commit e7e199c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/grpc-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@grpc/grpc-js",
"version": "1.9.1",
"version": "1.9.2",
"description": "gRPC Library for Node - pure JS implementation",
"homepage": "https://grpc.io/",
"repository": "https://github.com/grpc/grpc-node/tree/master/packages/grpc-js",
Expand Down
2 changes: 1 addition & 1 deletion packages/grpc-js/src/load-balancer-pick-first.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ export class PickFirstLoadBalancer implements LoadBalancer {
}

private pickSubchannel(subchannel: SubchannelInterface) {
if (subchannel === this.currentPick) {
if (this.currentPick && subchannel.realSubchannelEquals(this.currentPick)) {
return;
}
trace('Pick subchannel with address ' + subchannel.getAddress());
Expand Down

0 comments on commit e7e199c

Please sign in to comment.