Skip to content
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

stack: Make failfast::Gate general purpose #2279

Merged
merged 8 commits into from
Mar 1, 2023
Merged

stack: Make failfast::Gate general purpose #2279

merged 8 commits into from
Mar 1, 2023

Commits on Feb 28, 2023

  1. stack: Make failfast::Gate general purpose

    `failfast::Gate` is a stack middleware that supports changing its
    readiness based on some external signal (the failfast state changing).
    Nothing about the gate's behavior is specific to failfast, though; and
    this type of gating is general useful on its own.
    
    To setup further reuse, this change moves `stack::failfast::gate` to
    `stack::gate`. The gate is now tested independently from failfast.
    Failfast continues to maintain an (optional) `gate::Tx` so that it can
    control a gate.
    olix0r committed Feb 28, 2023
    Configuration menu
    Copy the full SHA
    7c2ba16 View commit details
    Browse the repository at this point in the history
  2. trace events

    olix0r committed Feb 28, 2023
    Configuration menu
    Copy the full SHA
    401fa5b View commit details
    Browse the repository at this point in the history
  3. fix test error condition

    olix0r committed Feb 28, 2023
    Configuration menu
    Copy the full SHA
    f046ea9 View commit details
    Browse the repository at this point in the history
  4. golf

    olix0r committed Feb 28, 2023
    Configuration menu
    Copy the full SHA
    bc1c554 View commit details
    Browse the repository at this point in the history
  5. more gate tests

    olix0r committed Feb 28, 2023
    Configuration menu
    Copy the full SHA
    6c7bffe View commit details
    Browse the repository at this point in the history
  6. fixup docstring

    olix0r committed Feb 28, 2023
    Configuration menu
    Copy the full SHA
    c19ebde View commit details
    Browse the repository at this point in the history
  7. Add Tx::closed, tests

    olix0r committed Feb 28, 2023
    Configuration menu
    Copy the full SHA
    5bebe11 View commit details
    Browse the repository at this point in the history
  8. simplify more

    olix0r committed Feb 28, 2023
    Configuration menu
    Copy the full SHA
    3472132 View commit details
    Browse the repository at this point in the history