Skip to content

Commit f957004

Browse files
committed
grpc-js-xds: XdsClusterImpl: fix handling of non-complete pick result type
1 parent 2121631 commit f957004

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/grpc-js-xds/src/load-balancer-xds-cluster-impl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ class XdsClusterImplPicker implements Picker {
173173
return {
174174
pickResultType: originalPick.pickResultType,
175175
status: originalPick.status,
176-
subchannel: pickSubchannel?.getWrappedSubchannel() ?? null,
176+
subchannel: pickSubchannel?.getWrappedSubchannel?.() ?? null,
177177
onCallStarted: () => {
178178
originalPick.onCallStarted?.();
179179
pickSubchannel?.getStatsObject()?.addCallStarted();

0 commit comments

Comments
 (0)