Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(dispatcher): improve epoch-related logs
Browse files Browse the repository at this point in the history
marcelstanley committed Aug 16, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 19c8c58 commit e624e16
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
@@ -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

4 changes: 3 additions & 1 deletion offchain/dispatcher/src/drivers/context.rs
Original file line number Diff line number Diff line change
@@ -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?;

0 comments on commit e624e16

Please sign in to comment.