Skip to content

Commit

Permalink
fix: changed method call in event-sources/sources/kafka/start.go (arg…
Browse files Browse the repository at this point in the history
  • Loading branch information
dpadhiar committed Dec 9, 2021
1 parent cdab1e3 commit 3626aec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eventsources/sources/kafka/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ func (el *EventListener) partitionConsumer(ctx context.Context, log *zap.Sugared

kafkaID := genUniqueID(el.GetEventSourceName(), el.GetEventName(), kafkaEventSource.URL, msg.Topic, msg.Partition, msg.Offset)

if err = dispatch(eventBody, eventsourcecommon.SetCustomID(kafkaID)); err != nil {
if err = dispatch(eventBody, eventsourcecommon.WithID(kafkaID)); err != nil {
return errors.Wrap(err, "failed to dispatch a Kafka event...")
}
return nil
Expand Down

0 comments on commit 3626aec

Please sign in to comment.