Unverified Commit 899c3279 authored by Maciej Hirsz's avatar Maciej Hirsz Committed by GitHub
Browse files

Use a single map for methods (#362)



* Use a single map for methods

* fmt

* cargo fmt screwed indents somehow

* Use Arc instead of Box for async methods

* fmt

* Implement `execute` on `MethodCallback` to keep things DRY

* fmt

* `OwnedJsonRpcRequest` is not necessary anymore

* Call `execute` on `Methods` directly for even more DRY code

* Update utils/src/server/rpc_module.rs

Co-authored-by: default avatarNiklas Adolfsson <[email protected]>

* Use `copied` instead of mapping a deref

* DRY-er `params` in `MethodCallback`

* Added comment on `0` conn_id in http

Co-authored-by: default avatarNiklas Adolfsson <[email protected]>
parent 094b10db
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment