Skip to content

Commit

Permalink
[producer message] Allow optional key for initializer (#164)
Browse files Browse the repository at this point in the history
Co-authored-by: Harish Yerra <hyerra@apple.com>
  • Loading branch information
hyerra and Harish Yerra authored Apr 17, 2024
1 parent 8d9d0ce commit 1d32866
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Kafka/KafkaProducerMessage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public struct KafkaProducerMessage<Key: KafkaContiguousBytes, Value: KafkaContig
topic: String,
partition: KafkaPartition = .unassigned,
headers: [KafkaHeader] = [],
key: Key,
key: Key?,
value: Value
) {
self.topic = topic
Expand Down

0 comments on commit 1d32866

Please sign in to comment.