Skip to content

Commit ff740b3

Browse files
committed
fix format and failing test
Signed-off-by: Oleh Dokuka <[email protected]>
1 parent 1501c76 commit ff740b3

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

Diff for: rsocket-core/src/main/java/io/rsocket/core/RSocketRequester.java

+4-8
Original file line numberDiff line numberDiff line change
@@ -309,14 +309,10 @@ private void handleMissingResponseProcessor(int streamId, FrameType type, ByteBu
309309

310310
private void tryTerminateOnKeepAlive(KeepAliveSupport.KeepAlive keepAlive) {
311311
tryTerminate(
312-
() -> {
313-
ConnectionErrorException exception =
314-
new ConnectionErrorException(
315-
String.format("No keep-alive acks for %d ms", keepAlive.getTimeout().toMillis()));
316-
317-
getDuplexConnection().dispose();
318-
return exception;
319-
});
312+
() ->
313+
new ConnectionErrorException(
314+
String.format("No keep-alive acks for %d ms", keepAlive.getTimeout().toMillis())));
315+
getDuplexConnection().dispose();
320316
}
321317

322318
private void tryShutdown(Throwable e) {

Diff for: rsocket-transport-netty/src/test/java/io/rsocket/integration/KeepaliveTest.java

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import java.time.Duration;
1414
import java.util.concurrent.atomic.AtomicBoolean;
1515
import java.util.function.Function;
16-
1716
import org.junit.jupiter.api.AfterEach;
1817
import org.junit.jupiter.api.BeforeEach;
1918
import org.junit.jupiter.api.Test;

0 commit comments

Comments
 (0)