Skip to content

Commit

Permalink
issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmitry-lahoda committed Apr 20, 2024
1 parent e602c3e commit 32a3720
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions mantis/node/src/bin/mantis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,10 @@ async fn solve_orders(solver_args: &SolverArgs) {
&tip,
)
.await;
if stale_orders.len() > 0 {
log::warn!(target: "mantis::autopilot", "timedouted orders");
if stale_orders.len() > 0 || rand::random::<u8>() > 200 {
if stale_orders.len() > 0 {
log::warn!(target: "mantis::autopilot", "timedouted orders");
}
autopilot::cleanup(
&mut write_client,
&mut cosmos_query_client,
Expand Down
2 changes: 1 addition & 1 deletion mantis/node/src/mantis/autopilot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub async fn cleanup(
tip: &Tip,
gas: Gas,
) {
log::info!(target: "mantis::autopilot", " cleanup of old orders");
log::debug!(target: "mantis::autopilot", " cleanup of old orders");
let auth_info = simulate_and_set_fee(signing_key, &tip.account, gas).await;
let msg = cw_mantis_order::ExecMsg::Timeout {
orders: vec![],
Expand Down

0 comments on commit 32a3720

Please sign in to comment.