Remove unecessary method param

This commit is contained in:
Julien Viet
2019-10-18 14:17:57 +02:00
parent c6dd46d10c
commit deadcc1f93
2 changed files with 3 additions and 4 deletions

View File

@@ -310,8 +310,7 @@ public class EventBusImpl implements EventBus, MetricsProvider {
return last;
}
protected <T> void sendReply(MessageImpl replyMessage, MessageImpl replierMessage, DeliveryOptions options,
ReplyHandler<T> replyHandler) {
protected <T> void sendReply(MessageImpl replyMessage, DeliveryOptions options, ReplyHandler<T> replyHandler) {
if (replyMessage.address() == null) {
throw new IllegalStateException("address not specified");
} else {

View File

@@ -110,7 +110,7 @@ public class MessageImpl<U, V> implements Message<V> {
public void reply(Object message, DeliveryOptions options) {
if (replyAddress != null) {
MessageImpl reply = createReply(message, options);
bus.sendReply(reply, this, options, null);
bus.sendReply(reply, options, null);
}
}
@@ -119,7 +119,7 @@ public class MessageImpl<U, V> implements Message<V> {
if (replyAddress != null) {
MessageImpl reply = createReply(message, options);
EventBusImpl.ReplyHandler<R> handler = bus.createReplyHandler(reply, reply.src, options);
bus.sendReply(reply, this, options, handler);
bus.sendReply(reply, options, handler);
return handler.result.future();
} else {
throw new IllegalStateException();