Skip to content

Commit

Permalink
Fix kafkaTemplate.send after rebasing
Browse files Browse the repository at this point in the history
  • Loading branch information
timonback committed Mar 12, 2023
1 parent c3780b2 commit a951dac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public boolean isEnabled() {

public void send(String topic, String key, Map<String, String> headers, Object payload) {
if (kafkaTemplate.isPresent()) {
kafkaTemplate.get().send(buildProducerRecord(topic, key, headers, payload)).completable().join();
kafkaTemplate.get().send(buildProducerRecord(topic, key, headers, payload)).toCompletableFuture().join();
} else {
log.warn("Kafka producer is not configured");
}
Expand Down

0 comments on commit a951dac

Please sign in to comment.