From 3a590944cbc8a153bbce8003b22ad1e2b4dc5b3e Mon Sep 17 00:00:00 2001 From: chris-belcher Date: Mon, 7 Feb 2022 21:37:50 +0000 Subject: [PATCH] Rename X_once ---> X_attempt_once It's a more descriptive name I think --- src/taker_protocol.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/taker_protocol.rs b/src/taker_protocol.rs index e715d8a1..4b2de980 100644 --- a/src/taker_protocol.rs +++ b/src/taker_protocol.rs @@ -505,7 +505,7 @@ async fn request_senders_contract_tx_signatures( let mut ii = 0; loop { ii += 1; - let ret = request_senders_contract_tx_signatures_once( + let ret = request_senders_contract_tx_signatures_attempt_once( maker_address, outgoing_swapcoins, maker_multisig_nonces, @@ -533,7 +533,7 @@ async fn request_senders_contract_tx_signatures( } } -async fn request_senders_contract_tx_signatures_once( +async fn request_senders_contract_tx_signatures_attempt_once( maker_address: &str, outgoing_swapcoins: &[S], maker_multisig_nonces: &[SecretKey], @@ -599,7 +599,7 @@ async fn request_receivers_contract_tx_signatures( let mut ii = 0; loop { ii += 1; - let ret = request_receivers_contract_tx_signatures_once( + let ret = request_receivers_contract_tx_signatures_attempt_once( maker_address, incoming_swapcoins, receivers_contract_txes, @@ -632,7 +632,7 @@ async fn request_receivers_contract_tx_signatures( } } -async fn request_receivers_contract_tx_signatures_once( +async fn request_receivers_contract_tx_signatures_attempt_once( maker_address: &str, incoming_swapcoins: &[S], receivers_contract_txes: &[Transaction], @@ -828,7 +828,7 @@ async fn exchange_signatures_and_find_next_maker<'a>( let mut ii = 0; loop { ii += 1; - let ret = exchange_signatures_and_find_next_maker_once( + let ret = exchange_signatures_and_find_next_maker_attempt_once( rpc, config, maker_offers_addresses, @@ -876,7 +876,7 @@ async fn exchange_signatures_and_find_next_maker<'a>( } } -async fn exchange_signatures_and_find_next_maker_once<'a>( +async fn exchange_signatures_and_find_next_maker_attempt_once<'a>( rpc: &Client, config: &TakerConfig, maker_offers_addresses: &mut Vec<&'a OfferAddress>,