Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix code comments errors #372

Merged
merged 2 commits into from
Jan 30, 2025
Merged
Changes from all commits
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
6 changes: 3 additions & 3 deletions crates/rbuilder/src/building/block_orders/test_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use super::{order_dumper::OrderDumper, SimulatedOrderSink, TestDataGenerator};
/// Usage:
/// - Create orders via funcs like create_multiple_sbundle_tx_br
/// - Call insert_order/remove_order
/// - Call expected results (pop_insert/pop_remove) in the expected order.
/// - Check expected results (pop_insert/pop_remove) in the expected order.
pub struct TestContext<TestedSinkType> {
pub data_gen: TestDataGenerator,
pub dumper: Rc<RefCell<OrderDumper>>,
Expand Down Expand Up @@ -72,7 +72,7 @@ impl<TestedSinkType: SimulatedOrderSink> TestContext<TestedSinkType> {
}]
}

// DEFAULT_REFUND for tx at index 0
// DEFAULT_REFUND applies to the tx at index 0
fn default_tx_br_refund() -> Vec<Refund> {
vec![Refund {
body_idx: 0,
Expand Down Expand Up @@ -229,7 +229,7 @@ impl<TestedSinkType: SimulatedOrderSink> TestContext<TestedSinkType> {
/// - the concatenated_sbundle has no refunds.
/// - SimValue of concatenated_order is the same as the first of sbundles (current expected behavior of merging)
///
/// self is not used buf simplifies the call since the static func would need the types specified.
/// self is not used but simplifies the call since the static function would need the types specified.
pub fn assert_concatenated_sbundles_ok(
&self,
concatenated_order: &SimulatedOrder,
Expand Down
Loading