Skip to content

Commit

Permalink
chore(functions): show client library init (#1980)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ace Nassri authored Sep 21, 2020
1 parent b2430f4 commit 2093e3e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions functions/pubsub/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,12 @@

'use strict';

// [START functions_pubsub_setup]
// [START functions_pubsub_publish]
const {PubSub} = require('@google-cloud/pubsub');

// Instantiates a client
const pubsub = new PubSub();
// [END functions_pubsub_setup]

// [START functions_pubsub_publish]
/**
* Publishes a message to a Cloud Pub/Sub Topic.
*
Expand Down

0 comments on commit 2093e3e

Please sign in to comment.