Skip to content

Commit ba07e3c

Browse files
authored
Merge pull request GoogleCloudPlatform#326 from GoogleCloudPlatform/speech-patch
2 parents ae4fb40 + 4762ef0 commit ba07e3c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

+2-4
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,9 @@
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;
33-
import io.grpc.netty.NegotiationType;
34-
import io.grpc.netty.NettyChannelBuilder;
3534
import org.apache.commons.cli.CommandLine;
3635
import org.apache.commons.cli.CommandLineParser;
3736
import org.apache.commons.cli.DefaultParser;
@@ -86,8 +85,7 @@ public static ManagedChannel createChannel(String host, int port) throws IOExcep
8685
GoogleCredentials creds = GoogleCredentials.getApplicationDefault();
8786
creds = creds.createScoped(OAUTH2_SCOPES);
8887
ManagedChannel channel =
89-
NettyChannelBuilder.forAddress(host, port)
90-
.negotiationType(NegotiationType.TLS)
88+
ManagedChannelBuilder.forAddress(host, port)
9189
.intercept(new ClientAuthInterceptor(creds, Executors.newSingleThreadExecutor()))
9290
.build();
9391

0 commit comments

Comments
 (0)