Skip to content

Commit 2ca993b

Browse files
committed
Fix error + fmt + clippy
1 parent 7942cbd commit 2ca993b

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

protos/src/convert.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,4 +154,4 @@ mod tests {
154154

155155
assert_eq!(tx_before, tx_after);
156156
}
157-
}
157+
}

searcher_client/src/lib.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use jito_protos::{
1616
searcher_service_client::SearcherServiceClient, SendBundleRequest, SendBundleResponse,
1717
},
1818
};
19-
use log::{info, warn};
19+
use log::info;
2020
use solana_client::nonblocking::rpc_client::RpcClient;
2121
use solana_sdk::{
2222
commitment_config::CommitmentConfig,
@@ -176,11 +176,12 @@ where
176176
rpc_client.get_signature_status_with_commitment(sig, CommitmentConfig::processed())
177177
})
178178
.collect();
179+
179180
let results = futures_util::future::join_all(futs).await;
180-
if !results.iter().all(|r| matches!(r, Ok(Some(Ok(()))))) {
181-
warn!("Transactions in bundle did not land");
181+
182+
if let Some(error) = results.iter().find_map(|r| r.as_ref().err()) {
182183
return Err(Box::new(BundleRejectionError::InternalError(
183-
"Searcher service did not provide bundle status in time".into(),
184+
error.to_string(),
184185
)));
185186
}
186187
info!("Bundle landed successfully");

searcher_client/src/token_authenticator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,4 +164,4 @@ impl Interceptor for ClientInterceptor {
164164

165165
Ok(request)
166166
}
167-
}
167+
}

0 commit comments

Comments
 (0)