Skip to content

Commit

Permalink
Rename X_once ---> X_attempt_once
Browse files Browse the repository at this point in the history
It's a more descriptive name I think
  • Loading branch information
chris-belcher committed Feb 7, 2022
1 parent b430eb2 commit 3a59094
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/taker_protocol.rs
Expand Up @@ -505,7 +505,7 @@ async fn request_senders_contract_tx_signatures<S: SwapCoin>(
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,
Expand Down Expand Up @@ -533,7 +533,7 @@ async fn request_senders_contract_tx_signatures<S: SwapCoin>(
}
}

async fn request_senders_contract_tx_signatures_once<S: SwapCoin>(
async fn request_senders_contract_tx_signatures_attempt_once<S: SwapCoin>(
maker_address: &str,
outgoing_swapcoins: &[S],
maker_multisig_nonces: &[SecretKey],
Expand Down Expand Up @@ -599,7 +599,7 @@ async fn request_receivers_contract_tx_signatures<S: SwapCoin>(
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,
Expand Down Expand Up @@ -632,7 +632,7 @@ async fn request_receivers_contract_tx_signatures<S: SwapCoin>(
}
}

async fn request_receivers_contract_tx_signatures_once<S: SwapCoin>(
async fn request_receivers_contract_tx_signatures_attempt_once<S: SwapCoin>(
maker_address: &str,
incoming_swapcoins: &[S],
receivers_contract_txes: &[Transaction],
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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>,
Expand Down

0 comments on commit 3a59094

Please sign in to comment.