mirror of
https://github.com/KumoCorp/kumomta.git
synced 2026-08-19 00:01:07 +00:00
4dad617d14
When this was added, it was to enable TSA daemon to express and convey that a given path should be suspended. The implementation was objectively unpleasant, turning the fast path of egress source assignment from a simple single iteration of the weighted round robin logic to N (where N is the number of sources in a pool) iterations to try and figure out if a suspension is active. Now that we have TSA subscriptions that update the admin suspension information in realtime, we can now simply rely on that source of information. This commit removes the logic associated with the deprecated suspended flag and tidies up the code, making that fast path a little more fast, and making the code a bit easier to reason about.