From 40b4815e1b836c5db4075a884380ea1f32fd49e7 Mon Sep 17 00:00:00 2001 From: KirillPamPam Date: Tue, 27 Feb 2024 18:52:22 +0400 Subject: [PATCH] Remove connection close (#429) --- .../dshackle/upstream/rpcclient/JsonRpcHttpClient.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/kotlin/io/emeraldpay/dshackle/upstream/rpcclient/JsonRpcHttpClient.kt b/src/main/kotlin/io/emeraldpay/dshackle/upstream/rpcclient/JsonRpcHttpClient.kt index 6478290a..40273c17 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/upstream/rpcclient/JsonRpcHttpClient.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/upstream/rpcclient/JsonRpcHttpClient.kt @@ -115,11 +115,7 @@ class JsonRpcHttpClient( response.responseConnection { t, u -> streamParser.streamParse( t.status().code(), - u.inbound().receive() - .asByteArray() - .doFinally { - u.dispose() - }, + u.inbound().receive().asByteArray(), ) }.single() }