diff --git a/fluffy/tools/blockwalk.nim b/fluffy/tools/blockwalk.nim index 797d6e85b..ad7b9a7d7 100644 --- a/fluffy/tools/blockwalk.nim +++ b/fluffy/tools/blockwalk.nim @@ -71,6 +71,11 @@ proc walkBlocks(client: RpcClient, startHash: Hash256) {.async.} = fatal "Error occured on JSON-RPC request", error = e.msg quit 1 + # Using the http connection re-use seems to slow down these sequentual + # requests considerably. Force a new connection setup by doing a close after + # each request. + await client.close() + if parentBlockOpt.isNone(): fatal "Failed getting parent block", hash = parentHash.data.toHex() quit 1 diff --git a/vendor/nim-chronos b/vendor/nim-chronos index 3621143c8..bb4c3298f 160000 --- a/vendor/nim-chronos +++ b/vendor/nim-chronos @@ -1 +1 @@ -Subproject commit 3621143c89ac445d9b3264cc247c59bb4db4b1e4 +Subproject commit bb4c3298f56ba7bc69fbccd08fd6e5474c410262 diff --git a/vendor/nim-json-rpc b/vendor/nim-json-rpc index b80313bfe..335f292a5 160000 --- a/vendor/nim-json-rpc +++ b/vendor/nim-json-rpc @@ -1 +1 @@ -Subproject commit b80313bfed0594198d77c6a22616f1f96c0d91fa +Subproject commit 335f292a5816910aebf215e3a88db8a665133e0e