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 3fea52c commit ff386e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed

- server-manager failures treated as errors on inspect-server.
- Improved dispatcher logs.

## [1.5.0] 2024-07-22

Expand Down
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 ff386e1

Please sign in to comment.