Skip to content

Commit 639ffef

Browse files
committed
refactor: show error log if marking tasks as pending back again fails
1 parent 8d6dddb commit 639ffef

File tree

1 file changed

+3
-1
lines changed
  • aggregation_mode/proof_aggregator/src/backend

1 file changed

+3
-1
lines changed

aggregation_mode/proof_aggregator/src/backend/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,9 @@ impl ProofAggregator {
144144
Err(err) => {
145145
error!("Error while aggregating and submitting proofs: {:?}", err);
146146
warn!("Marking tasks back to pending after failure");
147-
self.db.mark_tasks_as_pending(&tasks_id).await;
147+
if let Err(e) = self.db.mark_tasks_as_pending(&tasks_id).await {
148+
error!("Error while marking proofs to pending again: {:?}", e);
149+
};
148150
}
149151
}
150152
}

0 commit comments

Comments
 (0)