Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

skip passed slots and wake up service correctly#4212

Merged
gavofyork merged 2 commits intomasterfrom
rh-skip-passed
Nov 26, 2019
Merged

skip passed slots and wake up service correctly#4212
gavofyork merged 2 commits intomasterfrom
rh-skip-passed

Conversation

@rphmeier
Copy link
Copy Markdown
Contributor

This provides a fast-path for avoiding proposing for slots that have already passed. The service future was also not being woken up correctly when essential tasks exited.

@rphmeier rphmeier added the A0-please_review Pull request needs code review. label Nov 26, 2019
let slot_now = SignedDuration::default().slot_now(slot_duration);
if slot_now > slot_number {
// if this is behind, return.
debug!(target: self.logging_target(),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
debug!(target: self.logging_target(),
debug!(target: self.logging_target(),

@gavofyork gavofyork added A8-looksgood and removed A0-please_review Pull request needs code review. labels Nov 26, 2019
@gavofyork gavofyork merged commit d9a565c into master Nov 26, 2019
@gavofyork gavofyork deleted the rh-skip-passed branch November 26, 2019 17:38
gavofyork added a commit that referenced this pull request Nov 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants