Skip to content

Commit

Permalink
[TRIVIAL] Save surplus capturing jit order owners function naming fix (
Browse files Browse the repository at this point in the history
…#3051)

Noticed while browsing the code.
  • Loading branch information
squadgazzz authored Oct 11, 2024
1 parent 42e4fe2 commit 068bb9f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/autopilot/src/database/competition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ impl super::Postgres {
}

/// Saves the surplus capturing jit order owners to the DB
pub async fn save_surplus_capturing_jit_orders_orders(
pub async fn save_surplus_capturing_jit_order_owners(
&self,
auction_id: AuctionId,
surplus_capturing_jit_order_owners: &[Address],
Expand Down
4 changes: 2 additions & 2 deletions crates/autopilot/src/infra/persistence/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,13 @@ impl Persistence {
}

/// Saves the surplus capturing jit order owners to the DB
pub async fn save_surplus_capturing_jit_orders_orders(
pub async fn save_surplus_capturing_jit_order_owners(
&self,
auction_id: AuctionId,
surplus_capturing_jit_order_owners: &[domain::eth::Address],
) -> Result<(), DatabaseError> {
self.postgres
.save_surplus_capturing_jit_orders_orders(
.save_surplus_capturing_jit_order_owners(
auction_id,
&surplus_capturing_jit_order_owners
.iter()
Expand Down
2 changes: 1 addition & 1 deletion crates/autopilot/src/run_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ impl RunLoop {
.save_competition(&competition)
.map_err(|e| e.0.context("failed to save competition")),
self.persistence
.save_surplus_capturing_jit_orders_orders(
.save_surplus_capturing_jit_order_owners(
auction.id,
&auction.surplus_capturing_jit_order_owners,
)
Expand Down

0 comments on commit 068bb9f

Please sign in to comment.