subxt-rpcs 0.50.1

Make RPC calls to Substrate based nodes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright 2019-2026 Parity Technologies (UK) Ltd.
// This file is dual-licensed as Apache-2.0 or GPL-3.0.
// see LICENSE for license details.

//! Utils.

use super::RpcError;

pub fn display_close_reason(err: &RpcError) -> String {
    match err {
        RpcError::RestartNeeded(e) => e.to_string(),
        other => other.to_string(),
    }
}