Skip to content

Commit

Permalink
Per /grpc/grpc-java/issues/1772#issuecomment-364218818
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Oct 16, 2018
1 parent 409fc4f commit cd6c70d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -40,7 +40,7 @@ public class UsePubSubEmulatorSnippet {
public static void main(String... args) throws IOException {
// [START use_pubsub_emulator]
String hostport = System.getenv("PUBSUB_EMULATOR_HOST");
ManagedChannel channel = ManagedChannelBuilder.forTarget(hostport).usePlaintext(true).build();
ManagedChannel channel = ManagedChannelBuilder.forTarget(hostport).usePlaintext().build();
try {
TransportChannelProvider channelProvider =
FixedTransportChannelProvider.create(GrpcTransportChannel.create(channel));
Expand Down

0 comments on commit cd6c70d

Please sign in to comment.