KPMH - Remove unused parameter

This commit is contained in:
Gary Russell
2020-10-19 11:32:33 -04:00
parent 75d14d32e7
commit b6d60bfd69
2 changed files with 3 additions and 3 deletions

View File

@@ -534,8 +534,7 @@ public class KafkaProducerMessageHandler<K, V> extends AbstractReplyProducingMes
return processReplyFuture(gatewayFuture);
}
private void sendFutureIfRequested(final Message<?> message, ListenableFuture<SendResult<K, V>> sendFuture,
Object futureToken) {
private void sendFutureIfRequested(ListenableFuture<SendResult<K, V>> sendFuture, Object futureToken) {
if (futureToken != null) {
MessageChannel futures = getFuturesChannel();

View File

@@ -874,7 +874,8 @@ public class FuturesChannelApplication {
@Bean
IntegrationFlow inbound(ConsumerFactory<String, String> consumerFactory, Handler handler) {
return IntegrationFlows.from(Kafka.messageDrivenChannelAdapter(consumerFactory, ListenerMode.batch, "inTopic"))
return IntegrationFlows.from(Kafka.messageDrivenChannelAdapter(consumerFactory,
ListenerMode.batch, "inTopic"))
.handle(handler)
.get();
}