Skip to content

Commit

Permalink
ARGO-218883 - Revert "Revert "Added configurable ProducerRecord to Co…
Browse files Browse the repository at this point in the history
…nsumerRecord mapper. The default mapper does not include metadata and headers. Alternative mappers can now be specified.""

Removed reformatting. Reapplied changes.

This reverts commit bf4135f
  • Loading branch information
sivanmz committed Jan 23, 2020
1 parent bf4135f commit 7d4a94c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public Future<RecordMetadata> send(ProducerRecord<K, V> r, Callback callback) {
} else {
final Future<RecordMetadata> f = super.send(r, (metadata, exception) -> {
if (callback != null) callback.onCompletion(metadata, exception);
final ConsumerRecord<K, V> consumerRecord = recordMapper.apply(r, metadata);
ConsumerRecord<K, V> consumerRecord = recordMapper.apply(r, metadata);
enqueue(consumerRecord);
});
return f;
Expand Down

0 comments on commit 7d4a94c

Please sign in to comment.