Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion client/src/send_and_confirm_transactions_in_parallel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ async fn send_transaction_with_rpc_fallback(
)
.await
{
match &e.kind {
match e.kind() {
ErrorKind::Io(_) | ErrorKind::Reqwest(_) => {
// fall through on io error, we will retry the transaction
}
Expand Down
2 changes: 1 addition & 1 deletion rpc-client/src/nonblocking/rpc_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,7 @@ impl RpcClient {
code,
message,
data,
}) = &err.kind
}) = err.kind()
{
debug!("{} {}", code, message);
if let RpcResponseErrorData::SendTransactionPreflightFailure(
Expand Down
2 changes: 1 addition & 1 deletion rpc-test/tests/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ fn deserialize_rpc_error() -> ClientResult<()> {
let err = rpc_client.send_transaction(&tx);
let err = err.unwrap_err();

match err.kind {
match err.kind() {
ClientErrorKind::RpcError(RpcError::RpcRequestError { .. }) => {
// This is what used to happen
panic!()
Expand Down
2 changes: 1 addition & 1 deletion tpu-client/src/nonblocking/tpu_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ async fn maybe_fetch_cache_info(

fn is_invalid_slot_range_error(client_error: &ClientError) -> bool {
if let ErrorKind::RpcError(RpcError::RpcResponseError { code, message, .. }) =
&client_error.kind
client_error.kind()
{
return *code == -32602
&& message.contains("Invalid slot range: leader schedule for epoch");
Expand Down
2 changes: 1 addition & 1 deletion validator/src/dashboard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ fn get_validator_stats(
request::RpcResponseErrorData::NodeUnhealthy {
num_slots_behind: Some(num_slots_behind),
},
}) = &err.kind
}) = err.kind()
{
format!("{num_slots_behind} slots behind")
} else {
Expand Down
Loading