Skip to content

Commit

Permalink
xds: Pre-add fallback to xds client pool accessor
Browse files Browse the repository at this point in the history
When we implement A71, we're no longer going to have a single xds
client, but instead one per channel target. Add that parameter now, even
though it is unused, to avoid managing the (internal) API breakage when
we implement fallback.
  • Loading branch information
ejona86 committed Feb 23, 2024
1 parent c7e87d2 commit 569956e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ public static void setDefaultProviderBootstrapOverride(Map<String, ?> bootstrap)
SharedXdsClientPoolProvider.getDefaultProvider().setBootstrapOverride(bootstrap);
}

public static ObjectPool<XdsClient> getOrCreate() throws XdsInitializationException {
public static ObjectPool<XdsClient> getOrCreate(String target)
throws XdsInitializationException {
return SharedXdsClientPoolProvider.getDefaultProvider().getOrCreate();
}
}

0 comments on commit 569956e

Please sign in to comment.