update jsonrpsee

This commit is contained in:
Niklas
2021-12-21 11:06:59 +01:00
parent 8e6b277e34
commit 752c19e2f4
4 changed files with 18 additions and 29 deletions
+4 -7
View File
@@ -14,10 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with subxt. If not, see <http://www.gnu.org/licenses/>.
use jsonrpsee::types::{
DeserializeOwned,
Subscription,
};
use jsonrpsee::core::{DeserializeOwned, client::Subscription};
use sp_core::{
storage::{
StorageChangeSet,
@@ -253,9 +250,9 @@ where
T: DeserializeOwned,
{
match sub.next().await {
Ok(Some(next)) => Some(next),
Ok(None) => None,
Err(e) => {
None => None,
Some(Ok(next)) => Some(next),
Some(Err(e)) => {
log::error!("Subscription {} failed: {:?} dropping", sub_name, e);
None
}