diff --git a/cli/src/feature.rs b/cli/src/feature.rs index 6bf51b45f5..b368959e8e 100644 --- a/cli/src/feature.rs +++ b/cli/src/feature.rs @@ -283,7 +283,7 @@ fn feature_activation_allowed(rpc_client: &RpcClient, quiet: bool) -> Result { + rpc_custom_error::JSON_RPC_SERVER_ERROR_NODE_UNHEALTHY => { match serde_json::from_value::(json["error"]["data"].clone()) { Ok(rpc_custom_error::NodeUnhealthyErrorData {num_slots_behind}) => RpcResponseErrorData::NodeUnhealthy {num_slots_behind}, Err(_err) => { diff --git a/client/src/pubsub_client.rs b/client/src/pubsub_client.rs index d88a56d646..fada6e6591 100644 --- a/client/src/pubsub_client.rs +++ b/client/src/pubsub_client.rs @@ -98,7 +98,7 @@ where } pub fn send_unsubscribe(&self) -> Result<(), PubsubClientError> { - let method = format!("{}Unubscribe", self.operation); + let method = format!("{}Unsubscribe", self.operation); self.socket .write() .unwrap() diff --git a/client/src/rpc_custom_error.rs b/client/src/rpc_custom_error.rs index ab14ca7a32..e6191bf680 100644 --- a/client/src/rpc_custom_error.rs +++ b/client/src/rpc_custom_error.rs @@ -8,7 +8,7 @@ pub const JSON_RPC_SERVER_ERROR_BLOCK_CLEANED_UP: i64 = -32001; pub const JSON_RPC_SERVER_ERROR_SEND_TRANSACTION_PREFLIGHT_FAILURE: i64 = -32002; pub const JSON_RPC_SERVER_ERROR_TRANSACTION_SIGNATURE_VERIFICATION_FAILURE: i64 = -32003; pub const JSON_RPC_SERVER_ERROR_BLOCK_NOT_AVAILABLE: i64 = -32004; -pub const JSON_RPC_SERVER_ERROR_NODE_UNHEALTHLY: i64 = -32005; +pub const JSON_RPC_SERVER_ERROR_NODE_UNHEALTHY: i64 = -32005; pub const JSON_RPC_SERVER_ERROR_TRANSACTION_PRECOMPILE_VERIFICATION_FAILURE: i64 = -32006; pub const JSON_RPC_SERVER_ERROR_SLOT_SKIPPED: i64 = -32007; pub const JSON_RPC_SERVER_ERROR_NO_SNAPSHOT: i64 = -32008; @@ -80,7 +80,7 @@ impl From for Error { data: None, }, RpcCustomError::NodeUnhealthy { num_slots_behind } => Self { - code: ErrorCode::ServerError(JSON_RPC_SERVER_ERROR_NODE_UNHEALTHLY), + code: ErrorCode::ServerError(JSON_RPC_SERVER_ERROR_NODE_UNHEALTHY), message: if let Some(num_slots_behind) = num_slots_behind { format!("Node is behind by {} slots", num_slots_behind) } else {