Skip to content
  • aguestuser's avatar
    [347] redeem channels from dispatcher.dispatch · c59b9abd
    aguestuser authored
    * check if any incoming message is from a channel with a pending
      recycle request
    * if so, redeem it (and notify admins/maintainers) right away!
    
    side-effect:
    
    * refactor dispatcher.dispatch to extract handling of early-returning
      and non-early returning side-efffects just before `relay`
      * tuck all logic that detects actionable state from system messages
        and possibly returns early after processing it into a
        `detectInterventions` helper (which returns an `intervetnion` func
        and returns early after calling it)
      * tuck all logic that detects and takes action but does not require
        returning early into a `detectSideEffects` function, which returns
        an array of side-effects to perform before proceeding to `relay`
    c59b9abd