Rename RpcNodeUnhealthy error to NodeUnhealthy, generalize getHealth
RPC error object for the future
This commit is contained in:
@ -358,7 +358,9 @@ fn main() {
|
||||
code: _,
|
||||
message: _,
|
||||
data:
|
||||
rpc_request::RpcResponseErrorData::NodeUnhealthy { num_slots_behind },
|
||||
rpc_request::RpcResponseErrorData::NodeUnhealthy {
|
||||
num_slots_behind: Some(num_slots_behind),
|
||||
},
|
||||
},
|
||||
) = &err.kind
|
||||
{
|
||||
|
Reference in New Issue
Block a user