Skip to content

Commit

Permalink
Fix typos in comment messages (#371)
Browse files Browse the repository at this point in the history
## 📝 Summary

<!--- A general summary of your changes -->

## 💡 Motivation and Context

<!--- (Optional) Why is this change required? What problem does it
solve? Remove this section if not applicable. -->

---

## ✅ I have completed the following steps:

* [ ] Run `make lint`
* [ ] Run `make test`
* [ ] Added tests (if applicable)
  • Loading branch information
offensif authored Jan 24, 2025
1 parent 02016bc commit a98cd6b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion crates/rbuilder/src/backtest/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ impl BlockData {
result
}

/// Returns landed txs targeting account nonces non of our available txs were targeting.
/// Returns landed txs targeting account nonces none of our available txs were targeting.
pub fn search_missing_account_nonce_on_available_orders(&self) -> Vec<(TxHash, AccountNonce)> {
let mut available_accounts = HashSet::new();
for order in self.available_orders.iter().map(|owt| &owt.order) {
Expand Down
4 changes: 2 additions & 2 deletions crates/rbuilder/src/bin/debug-bench-machine.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! App to benchmark/test the tx block execution.
//! This only works when reth node is stopped and the chain moved forward form its synced state
//! It downloads block aftre the last one synced and re-executes all the txs in it.
//! This only works when reth node is stopped and the chain moved forward from its synced state
//! It downloads block after the last one synced and re-executes all the txs in it.
use alloy_provider::Provider;
use alloy_rpc_types::BlockTransactionsKind;
use clap::Parser;
Expand Down
2 changes: 1 addition & 1 deletion crates/rbuilder/src/bin/dummy-builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ impl UnfinishedBlockBuildingSink for TracingBlockSink {
/// This is a NOT real builder some data is not filled correctly (eg:BuiltBlockTrace)
#[derive(Debug)]
struct DummyBuildingAlgorithm {
/// Amnount of used orders to build a block
/// Amount of used orders to build a block
orders_to_use: usize,
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ mod test {
let generated_order = context.pop_insert();
context.assert_concatenated_sbundles_ok(&generated_order, &[br_hi.clone()]);

// for second expect a cancelation and a new megabundle with both
// for second expect a cancellation and a new megabundle with both
context.insert_order(br_low.clone());

assert_eq!(context.pop_remove(), generated_order.id());
Expand Down Expand Up @@ -168,7 +168,7 @@ mod test {
let generated_order = context.pop_insert();
context.assert_concatenated_sbundles_ok(&generated_order, &[br_hi.clone()]);

// for second expect a cancelation and a new megabundle with both
// for second expect a cancellation and a new megabundle with both
context.insert_order(br_low.clone());

assert_eq!(context.pop_remove(), generated_order.id());
Expand Down
2 changes: 1 addition & 1 deletion crates/rbuilder/src/building/builders/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ pub struct LiveBuilderInput<P> {
pub cancel: CancellationToken,
}

/// Struct that helps reading new orders/cancelations
/// Struct that helps reading new orders/cancellations
/// Call consume_next_commands, check the new_commands() and then consume them via apply_new_commands.
/// Call consume_next_cancellations and use cancel_data
#[derive(Debug)]
Expand Down

0 comments on commit a98cd6b

Please sign in to comment.