This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
RPC server: investigate whether some RPC calls could benefit as blocking
a.k.a tokio::spawn_blocking
#11401
Open
Description
jsonrpsee supports three different types on calls sync, async and blocking
The methods has just been ported how they were defined via https://github.com/paritytech/jsonrpc so just sync or async
but some RPC calls that are sync I/O such as reading DB might facilitate from using tokio::spawn_blocking
instead of tokio::spawn
which is used for the calls defined as async RPC calls.
See paritytech/jsonrpsee#486 for further information