chore: update jsonrpsee to v0.10.1 (#11173)

* fix(bin/node): remove unsed dep jsonrpsee

* chore(remote ext): update jsonrpsee v0.10.1

* chore(try runtime): update jsonrpsee v0.10.1

* Update utils/frame/try-runtime/cli/src/commands/follow_chain.rs

* cargo fmt
This commit is contained in:
Niklas Adolfsson authored and GitHub committed 2022-04-07 06:47:36 +00:00
1 parent fc4bd3c4fd
commit 1df943cd6d
10 files changed
+54 -108

No files matched your search

@@ -20,7 +20,7 @@ use crate::{
state_machine_call_with_proof, SharedParams, LOG_TARGET,
};
use jsonrpsee::{
types::{traits::SubscriptionClient, Subscription},
core::client::{Subscription, SubscriptionClientT},
ws_client::WsClientBuilder,
};
use parity_scale_codec::Decode;
@@ -76,13 +76,13 @@ where
loop {
let header = match subscription.next().await {
Ok(Some(header)) => header,
Ok(None) => {
log::warn!("subscription returned `None`. Probably decoding has failed.");
Some(Ok(header)) => header,
None => {
log::warn!("subscription closed");
break
},
Err(why) => {
log::warn!("subscription returned error: {:?}.", why);
Some(Err(why)) => {
log::warn!("subscription returned error: {:?}. Probably decoding has failed.", why);
continue
},
};