Skip to content

Commit fc3c81f

Browse files
nithinsujirpongad
authored andcommitted
Properly close snippet pubsub_subscriber_custom_credentials (#3575)
snippets.go fails and exits due to `snippet pubsub_subscriber_custom_credentials` not being closed. ``` $ go run utilities/snippets.go . snippet: [START google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/SubscriberSnippets.java]:178 snippet "pubsub_subscriber_custom_credentials" not closed exit status 1 ``` Rename the 2nd `START` to `END` to correct the typo.
1 parent b080e65 commit fc3c81f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ private Subscriber createSubscriberWithCustomCredentials() throws Exception {
184184
Subscriber.newBuilder(subscriptionName, receiver)
185185
.setCredentialsProvider(credentialsProvider)
186186
.build();
187-
// [START pubsub_subscriber_custom_credentials]
187+
// [END pubsub_subscriber_custom_credentials]
188188
return subscriber;
189189
}
190190

0 commit comments

Comments
 (0)