Skip to content

Commit 1d32866

Browse files
hyerraHarish Yerra
and
Harish Yerra
authored
[producer message] Allow optional key for initializer (#164)
Co-authored-by: Harish Yerra <[email protected]>
1 parent 8d9d0ce commit 1d32866

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Kafka/KafkaProducerMessage.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public struct KafkaProducerMessage<Key: KafkaContiguousBytes, Value: KafkaContig
4848
topic: String,
4949
partition: KafkaPartition = .unassigned,
5050
headers: [KafkaHeader] = [],
51-
key: Key,
51+
key: Key?,
5252
value: Value
5353
) {
5454
self.topic = topic

0 commit comments

Comments
 (0)