Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
two nit's
  • Loading branch information
anguillanneuf committed Sep 17, 2019
commit 0d2dd944cb252fe70434a92da861496d71958dbe
4 changes: 2 additions & 2 deletions pubsub/cloud-client/quickstart/pub.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ def pub(project_id, topic_name):
api_future.add_done_callback(get_callback(api_future, data, ref))

# Keep the main thread from exiting while the message future
# gets resovled in the background.
# gets resolved in the background.
while api_future.running():
time.sleep(0.5)
print("Published {} message.".format(ref["num_messages"]))
print("Published {} message(s).".format(ref["num_messages"]))


if __name__ == '__main__':
Expand Down