Skip to content

Commit 40bc367

Browse files
Merge pull request #443 from GoogleCloudPlatform/anguillanneuf-patch-1
Pub/Sub: fix region tag mistake
2 parents 5914c51 + 1531be7 commit 40bc367

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

pubsub/subscriptions.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2018 Google, Inc
1+
# Copyright 2019 Google, Inc
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -134,6 +134,7 @@ def listen_for_messages project_id:, subscription_name:
134134

135135
def listen_for_messages_with_custom_attributes project_id:, subscription_name:
136136
# [START pubsub_subscriber_sync_pull_custom_attributes]
137+
# [START pubsub_subscriber_async_pull_custom_attributes]
137138
# project_id = "Your Google Cloud Project ID"
138139
# subscription_name = "Your Pubsub subscription name"
139140
require "google/cloud/pubsub"
@@ -157,6 +158,7 @@ def listen_for_messages_with_custom_attributes project_id:, subscription_name:
157158
# messages does not quit
158159
sleep 60
159160
subscriber.stop.wait!
161+
# [END pubsub_subscriber_async_pull_custom_attributes]
160162
# [END pubsub_subscriber_sync_pull_custom_attributes]
161163
end
162164

0 commit comments

Comments
 (0)