-
Notifications
You must be signed in to change notification settings - Fork 0
refactor: integrate env and cache tasks #92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
27f35cb to
2e97789
Compare
| // Calculate the time remaining in the current slot | ||
| let remaining = self.slot_calculator.calculate_timepoint_within_slot(unix_seconds); | ||
| // Deadline is equal to the start of the next slot plus the time remaining in this slot | ||
| Instant::now() + Duration::from_secs(remaining) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this seems to have been giving incorrect output. we need to sub remaining from duration, then add that to now
| time::{self, Duration}, | ||
| }; | ||
|
|
||
| /// Holds a bundle from the cache with a unique ID and a Zenith bundle. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
replaced with sdk types
| /// # Arguments | ||
| /// | ||
| /// - finish_by: The deadline at which block simulation will end. | ||
| async fn next_block_env(&self, finish_by: Instant) -> eyre::Result<PecorinoBlockEnv> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
replaced by EnvTask
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the code lgtm. Want to see @dylanlott 's testing results
9be8e0f to
e82c2cb
Compare
8099c79 to
9b4f4de
Compare
9b4f4de to
6bf80dd
Compare
6bf80dd to
0ac3866
Compare
9bb3b73 to
d395f2e
Compare
0ac3866 to
a239bcb
Compare
a239bcb to
2fd44a7
Compare
d395f2e to
730dabd
Compare
2fd44a7 to
7c5a42c
Compare
730dabd to
485fc7b
Compare
6ba7761 to
924f6ef
Compare
924f6ef to
d01eae1
Compare

Integration for downstack PRs for cache and env tasks