Skip to content

Commit 59ad955

Browse files
author
Ace Nassri
authored
chore(functions): show client library init (GoogleCloudPlatform#4713)
1 parent 6f8196b commit 59ad955

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

functions/pubsub/main.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
# [START functions_pubsub_setup]
15+
# [START functions_pubsub_publish]
1616
import base64
1717
import json
1818
import os
@@ -23,10 +23,8 @@
2323
# Instantiates a Pub/Sub client
2424
publisher = pubsub_v1.PublisherClient()
2525
PROJECT_ID = os.getenv('GCP_PROJECT')
26-
# [END functions_pubsub_setup]
2726

2827

29-
# [START functions_pubsub_publish]
3028
# Publishes a message to a Cloud Pub/Sub topic.
3129
def publish(request):
3230
request_json = request.get_json(silent=True)

0 commit comments

Comments
 (0)