Skip to content

Commit

Permalink
Do not solve auction when the settlement queue is full
Browse files Browse the repository at this point in the history
  • Loading branch information
squadgazzz committed Jan 17, 2025
1 parent 395d605 commit 5d04c2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/driver/src/infra/api/routes/solve/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ async fn route(
.pre_processor()
.prioritize(auction, &competition.solver.account().address())
.await;
let result = competition.solve(auction).await;
competition.ensure_settle_queue_capacity()?;
let result = competition.solve(auction).await;
observe::solved(state.solver().name(), &result);
Ok(axum::Json(dto::SolveResponse::new(
result?,
Expand Down

0 comments on commit 5d04c2b

Please sign in to comment.