Skip to content

Commit

Permalink
closing #5
Browse files Browse the repository at this point in the history
  • Loading branch information
ochaloup committed May 9, 2024
1 parent 608cbac commit 6127483
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion settlement-pipelines/src/bin/close_settlements.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,15 @@ async fn main() -> anyhow::Result<()> {
execution_data,
Some(100_usize),
)
.await?;
.await
.map_or_else(
|e| {
let error_msg = format!("Failures on closing settlements: {:?}", e);
error!("{}", error_msg);
close_settlement_errors.push(error_msg);
},
|v| v,
);
info!(
"CloseSettlement instructions {close_settlement_execution_count} executed successfully of settlements [{}]",
expired_settlements
Expand Down

0 comments on commit 6127483

Please sign in to comment.