Skip to content

Commit

Permalink
Fix how evethub partitionkey is set
Browse files Browse the repository at this point in the history
  • Loading branch information
colmsnowplow committed Jul 6, 2021
1 parent 2e12c4b commit 905bfc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/target/eventhub.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func (eht *EventHubTarget) process(messages []*models.Message) (*models.TargetWr
ehBatch := make([]*eventhub.Event, messageCount)
for i, msg := range messages {
ehEvent := eventhub.NewEvent(msg.Data)
ehEvent.Set("PartitionKey", msg.PartitionKey) // TODO: Should we be setting the partition key here? Is this the right way to do so?
ehEvent.PartitionKey = &msg.PartitionKey
ehBatch[i] = ehEvent
}

Expand Down

0 comments on commit 905bfc3

Please sign in to comment.