Rename RpcNodeUnhealthy error to NodeUnhealthy, generalize getHealth
RPC error object for the future (#14656)
(cherry picked from commit 5d9dc609b1
)
Co-authored-by: Michael Vines <mvines@gmail.com>
This commit is contained in:
@@ -147,7 +147,7 @@ impl RpcRequest {
|
||||
pub enum RpcResponseErrorData {
|
||||
Empty,
|
||||
SendTransactionPreflightFailure(RpcSimulateTransactionResult),
|
||||
NodeUnhealthy { num_slots_behind: Slot },
|
||||
NodeUnhealthy { num_slots_behind: Option<Slot> },
|
||||
}
|
||||
|
||||
impl fmt::Display for RpcResponseErrorData {
|
||||
|
Reference in New Issue
Block a user