Skip to content

Commit

Permalink
Fix clippy deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotkennedy committed Sep 16, 2024
1 parent 3986ca3 commit f8adb00
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion terminator/src/accounts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ pub async fn unwrap_wsol_ata(klend_client: &KlendClient) -> Result<String> {
.build(&[])
.await?;

let (sig, _) = klend_client.client.send_and_confirm_transaction(tx).await?;
let (sig, _) = klend_client.client.send_retry_and_confirm_transaction(tx, None, false).await?;

info!("Executed unwrap transaction: {:?}", sig);
Ok(sig.to_string())
Expand Down
4 changes: 2 additions & 2 deletions terminator/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ impl KlendClient {

let txn = self.client.create_tx(&[create_lookup_table], &[]).await?;

self.client.send_and_confirm_transaction(txn).await?;
self.client.send_retry_and_confirm_transaction(txn, None, false).await?;

let keys = keys
.iter()
Expand Down Expand Up @@ -304,7 +304,7 @@ impl KlendClient {
if num_retries > max_retries {
return Err(anyhow!("Max retries reached"));
}
let (sig, res) = self.client.send_and_confirm_transaction(tx.clone()).await?;
let (sig, res) = self.client.send_retry_and_confirm_transaction(tx.clone(), None, false).await?;
if let Some(Err(TransactionError::BlockhashNotFound)) = res {
continue;
} else {
Expand Down
4 changes: 2 additions & 2 deletions terminator/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ pub mod swap {
let tx = builder.build(&[]).await?;

info!("Sending transaction...");
let (sig, _) = klend_client.client.send_and_confirm_transaction(tx).await?;
let (sig, _) = klend_client.client.send_retry_and_confirm_transaction(tx, None, false).await?;
info!("Executed transaction: {:?}", sig);

Ok(())
Expand Down Expand Up @@ -634,7 +634,7 @@ async fn liquidate(klend_client: &KlendClient, obligation: &Pubkey) -> Result<()
if should_send {
let sig = klend_client
.client
.send_and_confirm_transaction(txn)
.send_retry_and_confirm_transaction(txn, None, false)
.await
.unwrap();

Expand Down

0 comments on commit f8adb00

Please sign in to comment.