Skip to content
Snippets Groups Projects
  • Miles Patterson's avatar
    Fix for Issue 4762 (#4803) · 504edb1b
    Miles Patterson authored
    
    [Issue #4762 ](https://github.com/paritytech/polkadot-sdk/issues/4762)
    
    - Creates an enum for passing context of `service_queues` being called
    from within `on_initialize` and `on_idle` hooks. Uses a match statement
    inside of `service_queues` to continue using the same code, but NOT
    throw a `defensive` if being called within `on_idle` hook.
    - The issue requested to not throw the `defensive` if being called from
    within `on_idle` hook.
    - Created the `ServiceQueuesContext` enum to pass as an argument of
    `service_queues` when called within the `on_initialize` and `on_idle`
    hooks. A match statement was added inside of `service_queues` to
    continue to throw the defensive if called from `on_initialize` but NOT
    throw the defensive if called from `on_idle`.
    
    ---------
    
    Co-authored-by: default avatargotnoshoeson <milesbrentpatterson@proton.me>
    Co-authored-by: default avatarBastian Köcher <git@kchr.de>
    Co-authored-by: default avatarBastian Köcher <info@kchr.de>
    Unverified
    504edb1b
Code owners
Assign users and groups as approvers for specific file changes. Learn more.