[rpc server]: change tokio::Handle::block_in_place
to tokio::Handle::block_on
#16
Labels
D1-medium
Can be fixed by a coder with good Rust knowledge but little knowledge of the codebase.
Is there an existing issue?
Experiencing problems? Have you tried our Stack Exchange first?
Motivation
paritytech/substrate#13384 (comment)
Request
We should change it to tokio::block_in_place here to
tokio::block_on
but that requires to fix other code that block in sync code.If a caller is using
block_on
in some code that callsstart_rpc_servers
under the hood it will panic, it would end up with something similar as:Solution
Change
tokio::Handle::block_in_place
totokio::Handle::block_on
but it requires to fix a bunch of tests and related code.Are you willing to help with this request?
Yes!
The text was updated successfully, but these errors were encountered: