From 068bb9fa1ae261fb89a784cdcba9c8280665383e Mon Sep 17 00:00:00 2001 From: ilya Date: Fri, 11 Oct 2024 08:30:46 +0100 Subject: [PATCH] [TRIVIAL] Save surplus capturing jit order owners function naming fix (#3051) Noticed while browsing the code. --- crates/autopilot/src/database/competition.rs | 2 +- crates/autopilot/src/infra/persistence/mod.rs | 4 ++-- crates/autopilot/src/run_loop.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/autopilot/src/database/competition.rs b/crates/autopilot/src/database/competition.rs index 73bec9ebce..464fa9d1af 100644 --- a/crates/autopilot/src/database/competition.rs +++ b/crates/autopilot/src/database/competition.rs @@ -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], diff --git a/crates/autopilot/src/infra/persistence/mod.rs b/crates/autopilot/src/infra/persistence/mod.rs index fe9c379e6f..ba1ec0b5ba 100644 --- a/crates/autopilot/src/infra/persistence/mod.rs +++ b/crates/autopilot/src/infra/persistence/mod.rs @@ -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() diff --git a/crates/autopilot/src/run_loop.rs b/crates/autopilot/src/run_loop.rs index fe6aa88937..0a004b6309 100644 --- a/crates/autopilot/src/run_loop.rs +++ b/crates/autopilot/src/run_loop.rs @@ -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, )