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
2022-04-07 08:47:36 +02:00
committed by GitHub
parent fc4bd3c4fd
commit 1df943cd6d
10 changed files with 54 additions and 108 deletions
@@ -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
},
};