Skip to content

Commit a01e762

Browse files
authored
Merge pull request #57 from nitrictech/fix/add-event-id
fix: add event id to example.
2 parents 6718f90 + 8db4a56 commit a01e762

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/events/event_ids.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ async def events_event_ids():
1010
payload = {"content": "of event"}
1111

1212
# Publish an event to the topic 'my-topic'
13-
event = await topic.publish(Event(payload=payload))
13+
event = await topic.publish(Event(id="unique-event-id", payload=payload))
1414

1515

1616
# [END snippet]

0 commit comments

Comments
 (0)