File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
google-cloud-core/src/main/java/com/google/cloud Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -214,9 +214,7 @@ public UnaryCallSettings.Builder getApiCallSettings(RetrySettings retrySettings)
214214 */
215215 public static ChannelProvider setUpChannelProvider (
216216 InstantiatingChannelProvider .Builder providerBuilder , ServiceOptions <?, ?> serviceOptions ) {
217- HostAndPort hostAndPort = HostAndPort .fromString (serviceOptions .getHost ());
218- providerBuilder .setServiceAddress (hostAndPort .getHostText ())
219- .setPort (hostAndPort .getPort ())
217+ providerBuilder .setEndpoint (serviceOptions .getHost ())
220218 .setClientLibHeader (ServiceOptions .getGoogApiClientLibName (),
221219 firstNonNull (ServiceOptions .getLibraryVersion (), "" ));
222220 Credentials scopedCredentials = serviceOptions .getScopedCredentials ();
You can’t perform that action at this time.
0 commit comments