Skip to content

Commit

Permalink
fix format and failing test
Browse files Browse the repository at this point in the history
Signed-off-by: Oleh Dokuka <[email protected]>
  • Loading branch information
OlegDokuka committed Jan 31, 2025
1 parent 1501c76 commit ff740b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
12 changes: 4 additions & 8 deletions rsocket-core/src/main/java/io/rsocket/core/RSocketRequester.java
Original file line number Diff line number Diff line change
Expand Up @@ -309,14 +309,10 @@ private void handleMissingResponseProcessor(int streamId, FrameType type, ByteBu

private void tryTerminateOnKeepAlive(KeepAliveSupport.KeepAlive keepAlive) {
tryTerminate(
() -> {
ConnectionErrorException exception =
new ConnectionErrorException(
String.format("No keep-alive acks for %d ms", keepAlive.getTimeout().toMillis()));

getDuplexConnection().dispose();
return exception;
});
() ->
new ConnectionErrorException(
String.format("No keep-alive acks for %d ms", keepAlive.getTimeout().toMillis())));
getDuplexConnection().dispose();
}

private void tryShutdown(Throwable e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import java.time.Duration;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.function.Function;

import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
Expand Down

0 comments on commit ff740b3

Please sign in to comment.