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

Add on_idle hook #8209

Merged
merged 48 commits into from
Mar 11, 2021
Merged

Add on_idle hook #8209

merged 48 commits into from
Mar 11, 2021

Conversation

JesseAbram
Copy link
Contributor

@JesseAbram JesseAbram commented Feb 26, 2021

This PR implements the on_idle hook as discussed in issue #4064

@github-actions github-actions bot added the A3-in_progress Pull request is in progress. No review needed at this stage. label Feb 26, 2021
@apopiak apopiak mentioned this pull request Feb 26, 2021
frame/support/src/dispatch.rs Outdated Show resolved Hide resolved
frame/support/src/traits.rs Outdated Show resolved Hide resolved
frame/executive/src/lib.rs Outdated Show resolved Hide resolved
@athei athei linked an issue Feb 26, 2021 that may be closed by this pull request
frame/executive/src/lib.rs Outdated Show resolved Hide resolved
frame/support/src/traits.rs Outdated Show resolved Hide resolved
frame/support/src/dispatch.rs Outdated Show resolved Hide resolved
frame/support/src/dispatch.rs Outdated Show resolved Hide resolved
frame/support/src/dispatch.rs Outdated Show resolved Hide resolved
frame/support/src/dispatch.rs Outdated Show resolved Hide resolved
frame/support/src/dispatch.rs Outdated Show resolved Hide resolved
frame/support/src/dispatch.rs Outdated Show resolved Hide resolved
frame/support/src/dispatch.rs Outdated Show resolved Hide resolved
@gui1117
Copy link
Contributor

gui1117 commented Mar 1, 2021

should we allow decl_module to implement on_idle? I think we can just make decl_module always define the default on_idle and not allow user to use its own implementation.

EDIT: but now that it is implemented, we can keep it.

frame/executive/src/lib.rs Outdated Show resolved Hide resolved
frame/support/src/traits.rs Outdated Show resolved Hide resolved
@athei athei changed the title add in idle hook Add on_idle hook Mar 1, 2021
JesseAbram and others added 7 commits March 1, 2021 12:03
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com>
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com>
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com>
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com>
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com>
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com>
frame/support/src/traits.rs Outdated Show resolved Hide resolved
JesseAbram and others added 2 commits March 1, 2021 12:13
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com>
frame/support/src/dispatch.rs Outdated Show resolved Hide resolved
frame/support/src/dispatch.rs Outdated Show resolved Hide resolved
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com>
frame/support/src/traits.rs Outdated Show resolved Hide resolved
frame/support/src/traits.rs Outdated Show resolved Hide resolved
frame/support/src/traits.rs Outdated Show resolved Hide resolved
frame/support/src/traits.rs Outdated Show resolved Hide resolved
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io>
Copy link
Contributor

@apopiak apopiak left a comment

Choose a reason for hiding this comment

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

LGTM, some minor docs nitpicks

frame/support/src/traits.rs Outdated Show resolved Hide resolved
frame/support/src/traits.rs Outdated Show resolved Hide resolved
frame/support/src/traits.rs Outdated Show resolved Hide resolved
JesseAbram and others added 3 commits March 11, 2021 17:01
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io>
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io>
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. C1-low PR touches the given topic and has a low impact on builders.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

on_idle hook
7 participants