Skip to content

Commit 9101166

Browse files
authored
GH-1693: Use concatMap in ReactiveKafkaTemplate
Fixes #1693 The documentation of the `reactor-kafka` project states that messages should be consumed using the `concatMap` operator, but the `ReactiveKafkaConsumerTemplate` uses the `flatMap` operator at least in case of the `receiveAutoAck` method.
1 parent 5e46e02 commit 9101166

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-kafka/src/main/java/org/springframework/kafka/core/reactive/ReactiveKafkaConsumerTemplate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public Flux<ReceiverRecord<K, V>> receive() {
6666
}
6767

6868
public Flux<ConsumerRecord<K, V>> receiveAutoAck() {
69-
return this.kafkaReceiver.receiveAutoAck().flatMap(Function.identity());
69+
return this.kafkaReceiver.receiveAutoAck().concatMap(Function.identity());
7070
}
7171

7272
public Flux<ConsumerRecord<K, V>> receiveAtMostOnce() {

0 commit comments

Comments
 (0)