mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 12:11:02 +00:00
[relay-substrate-client] Bump jsonrpsee (#2066)
This commit is contained in:
committed by
Bastian Köcher
parent
6acd45804d
commit
70cf01d47a
@@ -138,13 +138,11 @@ impl Error {
|
||||
impl MaybeConnectionError for Error {
|
||||
fn is_connection_error(&self) -> bool {
|
||||
match *self {
|
||||
Error::RpcError(RpcError::Transport(_))
|
||||
// right now if connection to the ws server is dropped (after it is already established),
|
||||
// we're getting this error
|
||||
| Error::RpcError(RpcError::Internal(_))
|
||||
| Error::RpcError(RpcError::RestartNeeded(_))
|
||||
| Error::ClientNotSynced(_) => true,
|
||||
Error::FailedToReadBestFinalizedHeaderHash { ref error, .. } => error.is_connection_error(),
|
||||
Error::RpcError(RpcError::Transport(_)) |
|
||||
Error::RpcError(RpcError::RestartNeeded(_)) |
|
||||
Error::ClientNotSynced(_) => true,
|
||||
Error::FailedToReadBestFinalizedHeaderHash { ref error, .. } =>
|
||||
error.is_connection_error(),
|
||||
Error::FailedToReadBestHeader { ref error, .. } => error.is_connection_error(),
|
||||
Error::FailedToReadHeaderByHash { ref error, .. } => error.is_connection_error(),
|
||||
Error::ErrorExecutingRuntimeCall { ref error, .. } => error.is_connection_error(),
|
||||
|
||||
Reference in New Issue
Block a user