Skip to content

Commit 905bfc3

Browse files
committed
Fix how evethub partitionkey is set
1 parent 2e12c4b commit 905bfc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/target/eventhub.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func (eht *EventHubTarget) process(messages []*models.Message) (*models.TargetWr
107107
ehBatch := make([]*eventhub.Event, messageCount)
108108
for i, msg := range messages {
109109
ehEvent := eventhub.NewEvent(msg.Data)
110-
ehEvent.Set("PartitionKey", msg.PartitionKey) // TODO: Should we be setting the partition key here? Is this the right way to do so?
110+
ehEvent.PartitionKey = &msg.PartitionKey
111111
ehBatch[i] = ehEvent
112112
}
113113

0 commit comments

Comments
 (0)