Skip to content

Commit

Permalink
Adding occurred_at
Browse files Browse the repository at this point in the history
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
  • Loading branch information
rodneyosodo committed Jul 11, 2023
1 parent a76220c commit 32d0120
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/clients/redis/producer.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ func (es *eventStore) Publish(ctx context.Context, event Event) error {
if err != nil {
return err
}
values["occurred_at"] = time.Now().UnixNano()

record := &redis.XAddArgs{
Stream: es.streamID,
MaxLenApprox: es.streamLen,
Expand Down

0 comments on commit 32d0120

Please sign in to comment.