Skip to content

Commit

Permalink
CloudEvent.ID length to 32 chars
Browse files Browse the repository at this point in the history
Signed-off-by: Taleb Zeghmi <talebz@zillowgroup.com>
  • Loading branch information
talebzeghmi committed Jul 1, 2024
1 parent 58617e6 commit fc31db0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eventsources/eventing.go
Original file line number Diff line number Diff line change
Expand Up @@ -546,8 +546,9 @@ func (e *EventSourceAdaptor) run(ctx context.Context, servers map[apicommon.Even
}
}

uuidNew := uuid.New()
event := cloudevents.NewEvent()
event.SetID(fmt.Sprintf("%x", uuid.New()))
event.SetID(fmt.Sprintf("%x", uuidNew[:]))
event.SetType(string(s.GetEventSourceType()))
event.SetSource(s.GetEventSourceName())
event.SetSubject(s.GetEventName())
Expand Down

0 comments on commit fc31db0

Please sign in to comment.