Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

client: Rename confrim -> confirm #32861

Merged
merged 2 commits into from
Aug 17, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
client: Rename confrim -> confirm
  • Loading branch information
joncinque committed Aug 17, 2023
commit 599dfad2a9815766bbf4a111b4df693b7478a846
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use {
solana_client::{
nonblocking::tpu_client::TpuClient,
send_and_confirm_transactions_in_parallel::{
send_and_confirm_transactions_in_parallel_blocking, SendAndConfrimConfig,
send_and_confirm_transactions_in_parallel_blocking, SendAndConfirmConfig,
},
},
solana_rpc_client::rpc_client::RpcClient,
Expand Down Expand Up @@ -56,7 +56,7 @@ fn test_send_and_confirm_transactions_in_parallel_without_tpu_client() {
None,
&messages,
&[&alice],
SendAndConfrimConfig {
SendAndConfirmConfig {
with_spinner: false,
resign_txs_count: Some(5),
},
Expand Down Expand Up @@ -114,7 +114,7 @@ fn test_send_and_confirm_transactions_in_parallel_with_tpu_client() {
Some(tpu_client),
&messages,
&[&alice],
SendAndConfrimConfig {
SendAndConfirmConfig {
with_spinner: false,
resign_txs_count: Some(5),
},
Expand Down
6 changes: 3 additions & 3 deletions client/src/send_and_confirm_transactions_in_parallel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ struct BlockHashData {
}

#[derive(Clone, Debug, Copy)]
pub struct SendAndConfrimConfig {
pub struct SendAndConfirmConfig {
pub with_spinner: bool,
pub resign_txs_count: Option<usize>,
}
Expand All @@ -61,7 +61,7 @@ pub fn send_and_confirm_transactions_in_parallel_blocking<T: Signers + ?Sized>(
tpu_client: Option<QuicTpuClient>,
messages: &[Message],
signers: &T,
config: SendAndConfrimConfig,
config: SendAndConfirmConfig,
) -> Result<Vec<Option<TransactionError>>> {
let fut = send_and_confirm_transactions_in_parallel(
rpc_client.get_inner_client().clone(),
Expand Down Expand Up @@ -352,7 +352,7 @@ pub async fn send_and_confirm_transactions_in_parallel<T: Signers + ?Sized>(
tpu_client: Option<QuicTpuClient>,
messages: &[Message],
signers: &T,
config: SendAndConfrimConfig,
config: SendAndConfirmConfig,
) -> Result<Vec<Option<TransactionError>>> {
// get current blockhash and corresponding last valid block height
let (blockhash, last_valid_blockheight) = rpc_client
Expand Down