Bump chronos and json-rpc and avoid http conn re-use for blockwalk (#1053)

Currently re-using http connections for the json-rpc requests
seems to slow down the requests considerably. Avoid this by
forcing a close after each requests in the blockwalk tool.
This commit is contained in:
Kim De Mey 2022-04-11 19:39:45 +02:00 committed by GitHub
parent eb84eb0854
commit 82aab2a404
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 2 deletions

View File

@ -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

2
vendor/nim-chronos vendored

@ -1 +1 @@
Subproject commit 3621143c89ac445d9b3264cc247c59bb4db4b1e4
Subproject commit bb4c3298f56ba7bc69fbccd08fd6e5474c410262

2
vendor/nim-json-rpc vendored

@ -1 +1 @@
Subproject commit b80313bfed0594198d77c6a22616f1f96c0d91fa
Subproject commit 335f292a5816910aebf215e3a88db8a665133e0e