Closed slashdotdash closed 3 years ago
Add event_id to the EventStore.EventData struct and use it as the event's id unless it is nil (default to UUID.uuid4()).
event_id
EventStore.EventData
nil
UUID.uuid4()
This allows idempotency when appending events (don't append the same event twice) as the event store guarantees that event ids are unique.
Done in #229.
Add
event_id
to theEventStore.EventData
struct and use it as the event's id unless it isnil
(default toUUID.uuid4()
).This allows idempotency when appending events (don't append the same event twice) as the event store guarantees that event ids are unique.