From 1531be7fa76a26351fa4964efb826afb7d4f682d Mon Sep 17 00:00:00 2001 From: Tianzi Cai Date: Mon, 12 Aug 2019 16:05:08 -0700 Subject: [PATCH] fix region tag mistake --- pubsub/subscriptions.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pubsub/subscriptions.rb b/pubsub/subscriptions.rb index 27928f5b6..5c38e4712 100644 --- a/pubsub/subscriptions.rb +++ b/pubsub/subscriptions.rb @@ -1,4 +1,4 @@ -# Copyright 2018 Google, Inc +# Copyright 2019 Google, Inc # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -134,6 +134,7 @@ def listen_for_messages project_id:, subscription_name: def listen_for_messages_with_custom_attributes project_id:, subscription_name: # [START pubsub_subscriber_sync_pull_custom_attributes] + # [START pubsub_subscriber_async_pull_custom_attributes] # project_id = "Your Google Cloud Project ID" # subscription_name = "Your Pubsub subscription name" require "google/cloud/pubsub" @@ -157,6 +158,7 @@ def listen_for_messages_with_custom_attributes project_id:, subscription_name: # messages does not quit sleep 60 subscriber.stop.wait! + # [END pubsub_subscriber_async_pull_custom_attributes] # [END pubsub_subscriber_sync_pull_custom_attributes] end