-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[servers] extract rpc modules to utils #322
Conversation
This commit extracts the `rpc_module` from the servers to be shared. It will help to re-use rpc modules within both the servers
d8c4bec
to
286edbe
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added some more docs.
utils/src/server/mod.rs
Outdated
/// Abstract JSON-RPC modules that can be used to register methods on a server. | ||
pub mod rpc_module; | ||
|
||
/// Sender. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a lot of sending going on in this library… can you extend the docs a bit here please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
renamed it to MethodSink
and added some docs, should be more understandable now.
Can you take another look?
Seems like a minor annoyance. Let's log a low-prio issue and move on. |
Co-authored-by: David <[email protected]>
Co-authored-by: David <[email protected]>
Co-authored-by: David <[email protected]>
Co-authored-by: David <[email protected]>
Co-authored-by: David <[email protected]>
Co-authored-by: David <[email protected]>
Co-authored-by: David <[email protected]>
Co-authored-by: David <[email protected]>
Co-authored-by: David <[email protected]>
Co-authored-by: David <[email protected]>
Co-authored-by: David <[email protected]>
…rpsee into na-extract-server-module
Co-authored-by: David <[email protected]>
Co-authored-by: David <[email protected]>
Co-authored-by: David <[email protected]>
Closing #307
One annoyance with this, is that it's possible to register subscription on HTTP server with this.
Maybe introduce some trait for circumvent this?!