Expand description
Verdict-ranked candidate selection shared by the fetcher and backfill.
A caller hands an eligibility-filtered, priority-ordered server list to
[rank_candidates]; the per-server ShouldAttempt verdict reorders and
drops it.
Enums§
- When
AllBacked Off - Behavior when every candidate is backed off (no
YesorDeprioritizeverdict in the pool).
Functions§
- rank_
from_ 🔒verdicts - Order
YesbeforeDeprioritizebeforeNo, preserving input order within each rank, then dropNounless every candidate is backed off andwhen_allisAttempt.
Type Aliases§
- Candidates
- A candidate server pool for one fetch: the hint, room servers, and mxid hosts. Inline budget 3 holds the common single-event case (event origin, room origin, optional hint) on the stack; larger room-derived pools spill to the heap.
- Verdicts 🔒
- A candidate pool paired with each server’s verdict, sorted and filtered in
place by
rank_from_verdicts.