Skip to content

Commit

Permalink
Remove unused parameter from handleConnectionRestored
Browse files Browse the repository at this point in the history
Signed-off-by: Klem Yannic (INST/ECS1) <yannic.klem@bosch-si.com>
  • Loading branch information
Yannic92 committed Jul 3, 2019
1 parent 1f5ec2b commit 3f78210
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ private State<BaseClientState, BaseClientData> handleConnectionFailureWhenConnec
@Override
protected FSMStateFunctionBuilder<BaseClientState, BaseClientData> inAnyState() {
return super.inAnyState()
.event(ConnectionRestoredStatusReport.class, this::handleConnectionRestored)
.event(ConnectionRestoredStatusReport.class,
(report, currentData) -> this.handleConnectionRestored(currentData))
.event(ConnectionFailureStatusReport.class, this::handleConnectionFailure)
.event(ConsumerClosedStatusReport.class, this::handleConsumerClosed)
.event(ProducerClosedStatusReport.class, this::handleProducerClosed)
Expand Down Expand Up @@ -435,9 +436,7 @@ private CompletableFuture<Void> ensureJmsConnectionClosed() {
}
}

private FSM.State<BaseClientState, BaseClientData> handleConnectionRestored(
final ConnectionRestoredStatusReport statusReport,
final BaseClientData currentData) {
private FSM.State<BaseClientState, BaseClientData> handleConnectionRestored(final BaseClientData currentData) {
if (jmsSession == null || ((JmsSession) jmsSession).isClosed()) {
log.info("Restored connection has closed session, trying to recover...");
recoverSession(jmsSession);
Expand Down

0 comments on commit 3f78210

Please sign in to comment.