Skip to content

Commit f526a44

Browse files
kenfestachingor13
authored andcommitted
Update UsePubSubEmulatorSnippet.java (#4256)
1 parent 70d7efb commit f526a44

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/UsePubSubEmulatorSnippet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class UsePubSubEmulatorSnippet {
3939
public static void main(String... args) throws IOException {
4040
// [START use_pubsub_emulator]
4141
String hostport = System.getenv("PUBSUB_EMULATOR_HOST");
42-
ManagedChannel channel = ManagedChannelBuilder.forTarget(hostport).usePlaintext(true).build();
42+
ManagedChannel channel = ManagedChannelBuilder.forTarget(hostport).usePlaintext().build();
4343
try {
4444
TransportChannelProvider channelProvider =
4545
FixedTransportChannelProvider.create(GrpcTransportChannel.create(channel));

0 commit comments

Comments
 (0)