From a92b156e8fb463f2384020d0b994a6673d05a54c Mon Sep 17 00:00:00 2001 From: terminal Date: Tue, 6 Sep 2022 12:19:06 +0300 Subject: [PATCH] fix formatting --- .../emeraldpay/dshackle/upstream/ethereum/WsConnection.kt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/WsConnection.kt b/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/WsConnection.kt index 197fd056..a6befbc0 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/WsConnection.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/WsConnection.kt @@ -165,7 +165,8 @@ open class WsConnection( reconnecting.set(false) connectInternal() }, - retryInterval, TimeUnit.MILLISECONDS + retryInterval, + TimeUnit.MILLISECONDS ) } @@ -298,7 +299,10 @@ open class WsConnection( fun onRpc(msg: ResponseWSParser.WsResponse): Mono { return if (msg.id.isNumber()) { val resp = JsonRpcResponse( - msg.value, msg.error, msg.id, null + msg.value, + msg.error, + msg.id, + null ) Mono.fromCallable { val status = rpcReceive.tryEmitNext(resp)