Skip to content

Commit

Permalink
Update sending-messages.adoc (#3549)
Browse files Browse the repository at this point in the history
  • Loading branch information
shalk authored Oct 9, 2024
1 parent 96ee5c2 commit c702510
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ This section shows examples of sending messages to Kafka:
public void sendToKafka(final MyOutputData data) {
final ProducerRecord<String, String> record = createRecord(data);
CompletableFuture<SendResult<Integer, String>> future = template.send(record);
CompletableFuture<SendResult<String, String>> future = template.send(record);
future.whenComplete((result, ex) -> {
if (ex == null) {
handleSuccess(data);
Expand Down

0 comments on commit c702510

Please sign in to comment.