There was an error fetching the commit references. Please try again later.
Remove usage of `jsonrpsee::RawClient`
By using a `jsonrpsee::Client` we are able to remove all the shared mutable references required when interacting with the RPC server. This is convenient as trying to sharing mutable references in code that uses async/await is a bit of a pain. However, using a `Client` instead of a `RawClient` is not yet supported by the `jsonrpsee::rpc_api` macro, so a fork must be used for the moment.
Showing
- Cargo.lock 41 additions, 3 deletionsCargo.lock
- relays/ethereum/Cargo.toml 1 addition, 1 deletionrelays/ethereum/Cargo.toml
- relays/ethereum/src/ethereum_client.rs 35 additions, 36 deletionsrelays/ethereum/src/ethereum_client.rs
- relays/ethereum/src/ethereum_sync_loop.rs 19 additions, 32 deletionsrelays/ethereum/src/ethereum_sync_loop.rs
- relays/ethereum/src/rpc.rs 19 additions, 19 deletionsrelays/ethereum/src/rpc.rs
- relays/ethereum/src/rpc_errors.rs 4 additions, 6 deletionsrelays/ethereum/src/rpc_errors.rs
- relays/ethereum/src/substrate_client.rs 40 additions, 43 deletionsrelays/ethereum/src/substrate_client.rs
- relays/ethereum/src/substrate_sync_loop.rs 12 additions, 20 deletionsrelays/ethereum/src/substrate_sync_loop.rs
- relays/ethereum/src/sync_loop.rs 14 additions, 12 deletionsrelays/ethereum/src/sync_loop.rs
Please register or sign in to comment