Skip to content

Commit

Permalink
docs: fix create_topic() call in README (#360)
Browse files Browse the repository at this point in the history
  • Loading branch information
plamut authored Apr 1, 2021
1 parent 15e0f64 commit f5eee4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ messages to it
project_id=os.getenv('GOOGLE_CLOUD_PROJECT'),
topic='MY_TOPIC_NAME', # Set this to something appropriate.
)
publisher.create_topic(topic_name)
publisher.create_topic(name=topic_name)
future = publisher.publish(topic_name, b'My first message!', spam='eggs')
future.result()
Expand Down

0 comments on commit f5eee4b

Please sign in to comment.