commit ebd83c59606ffcf69e193f1c16dfc65c1f561d2e
parent 9605a01f4ab9c2222011bd7b946f94795cebc0d5
Author: Antoine A <>
Date: Thu, 6 Nov 2025 18:05:46 +0100
common: typos
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/taler-magnet-bank/src/bin/magnet-bank-harness.rs b/taler-magnet-bank/src/bin/magnet-bank-harness.rs
@@ -204,20 +204,20 @@ impl<'a> Balances<'a> {
async fn expect(&mut self, diff: i32) -> anyhow::Result<()> {
self.exchange_balance = (self.exchange_balance as i32 + diff) as u32;
self.client_balance = (self.client_balance as i32 - diff) as u32;
- let mut attemps = 0;
+ let mut attempts = 0;
loop {
let current = self.client.balance().await?;
if current == (self.exchange_balance, self.client_balance) {
return Ok(());
}
- if attemps > 20 {
+ if attempts > 20 {
assert_eq!(
current,
(self.exchange_balance, self.client_balance),
"{current:?} {diff}"
);
}
- attemps += 1;
+ attempts += 1;
tokio::time::sleep(Duration::from_secs(1)).await;
}
}