Skip to content

Commit

Permalink
chore(dispatcher): improve epoch-related logs
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelstanley committed Aug 15, 2024
1 parent 1290793 commit 66ad25f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion offchain/dispatcher/src/drivers/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ impl Context {
(Some(_), None) => true, // Consider input_epoch greater than None
(None, _) => false, // None is never greater than any value
},
"Assertion failed: last_input_epoch should be greater than last_finished_epoch"
"cannot finish epoch: last_input_epoch ({:?}) is not greater than last_finished_epoch ({:?})",
self.last_input_epoch,
self.last_finished_epoch
);

broker.finish_epoch(self.inputs_sent).await?;
Expand Down

0 comments on commit 66ad25f

Please sign in to comment.