Conversation
| rate_limit_whitelisted_ips: Arc::new(rate_limit_whitelisted_ips), | ||
| }; | ||
|
|
||
| let make_service = make_service_fn(move |addr: &AddrStream| { |
There was a problem hiding this comment.
hyper::service::make_service_fn is removed and we need to manage to socket ourselves.
Using to low-level API should easy to add support for ipv6 sockets but I'll fix it another PR.
|
|
||
| fn handle_notification( | ||
| maybe_header: Option<Result<RelayHeader, Error>>, | ||
| maybe_header: Option<Result<RelayHeader, serde_json::Error>>, |
There was a problem hiding this comment.
//cc @skunert
This is slightly modified and only decoding can cause this error now.
Since this API was confusing before i.e, the subscription could be closed because it lagged (i.e, couldn't keep with server) or just closed.
We have added another API https://docs.rs/jsonrpsee-core/0.23.1/jsonrpsee_core/client/struct.Subscription.html#method.close_reason but not sure whether you care here....
substrate/client/rpc-spec-v2/src/transaction/transaction_broadcast.rs
Outdated
Show resolved
Hide resolved
substrate/client/rpc-spec-v2/src/transaction/transaction_broadcast.rs
Outdated
Show resolved
Hide resolved
…cast.rs Co-authored-by: Bastian Köcher <git@kchr.de>
Co-authored-by: Bastian Köcher <git@kchr.de>
Co-authored-by: Bastian Köcher <git@kchr.de>
…cast.rs Co-authored-by: Bastian Köcher <git@kchr.de>
Co-authored-by: Bastian Köcher <git@kchr.de>
Co-authored-by: Bastian Köcher <git@kchr.de>
|
The CI pipeline was cancelled due to failure one of the required jobs. |
This is PR updates jsonrpsee v0.23 which mainly changes: - Add `Extensions` which we now is using to get the connection id (used by the rpc spec v2 impl) - Update hyper to v1.0, http v1.0, soketto and related crates (hyper::service::make_service_fn is removed) - The subscription API for the client is modified to know why a subscription was closed. Full changelog here: https://github.com/paritytech/jsonrpsee/releases/tag/v0.23.0 --------- Co-authored-by: Bastian Köcher <git@kchr.de>
This is PR updates jsonrpsee v0.23 which mainly changes: - Add `Extensions` which we now is using to get the connection id (used by the rpc spec v2 impl) - Update hyper to v1.0, http v1.0, soketto and related crates (hyper::service::make_service_fn is removed) - The subscription API for the client is modified to know why a subscription was closed. Full changelog here: https://github.com/paritytech/jsonrpsee/releases/tag/v0.23.0 --------- Co-authored-by: Bastian Köcher <git@kchr.de>
This is PR updates jsonrpsee v0.23 which mainly changes:
Extensionswhich we now is using to get the connection id (used by the rpc spec v2 impl)Full changelog here: https://github.com/paritytech/jsonrpsee/releases/tag/v0.23.0