Skip to content

Commit

Permalink
fix: changed method call in event-sources/sources/kafka/start.go (#1457)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpadhiar authored and whynowy committed Dec 9, 2021
1 parent 76777a7 commit 6f0d4fc
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 6f0d4fc

Please sign in to comment.