Skip to content

Commit df2efd4

Browse files
committed
Merge remote-tracking branch 'louiscryan/patch-1' into speech-patch
2 parents fc5cd9a + 680c4b6 commit df2efd4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

speech/grpc/src/main/java/com/examples/cloud/speech/AsyncRecognizeClient.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import com.google.longrunning.OperationsGrpc;
2929

3030
import io.grpc.ManagedChannel;
31+
import io.grpc.ManagedChannelBuilder;
3132
import io.grpc.StatusRuntimeException;
3233
import io.grpc.auth.ClientAuthInterceptor;
3334
import io.grpc.netty.NegotiationType;
@@ -86,7 +87,7 @@ public static ManagedChannel createChannel(String host, int port) throws IOExcep
8687
GoogleCredentials creds = GoogleCredentials.getApplicationDefault();
8788
creds = creds.createScoped(OAUTH2_SCOPES);
8889
ManagedChannel channel =
89-
NettyChannelBuilder.forAddress(host, port)
90+
ManagedChannelBuilder.forAddress(host, port)
9091
.negotiationType(NegotiationType.TLS)
9192
.intercept(new ClientAuthInterceptor(creds, Executors.newSingleThreadExecutor()))
9293
.build();

0 commit comments

Comments
 (0)