Add core RelaySelector#1696
Conversation
Coverage Report for CI Build 28468711613Coverage increased (+0.2%) to 85.988%Details
Uncovered Changes
Coverage Regressions2 previously-covered lines in 2 files lost coverage.
Coverage Stats
💛 - Coveralls |
zealsham
left a comment
There was a problem hiding this comment.
Cack
one question, once a relay is marked as failed, its impossible to unfail except a total restart, Should we have time window for retryability ?
|
thanks for the review! @zealsham
keeping it out of this PR to stay focused on the selection refactor |
One canonical relay-selection policy so integrators stop diverging.
Consumers inherit one selection and failover policy instead of each diverging.
Add a SelectContext argument to select() and pass an empty, random context at each call site.
|
rebased onto master, integrated with #1695: relay selection moved out of |
centralize OHTTP relay selection in
payjoin::relay::RelaySelectorso integrators share one policy instead of each diverging.breaking:
io::fetch_ohttp_keys(relay, dir) -> OhttpKeysbecomes(relays, dir) -> (OhttpKeys, Url)this is the follow-up referenced in #1695 (review) by @DanGould; directory selection stays in the manager; durable tracking is #1697
part of #1694 / part of #1586
disclosure: co-authored by Claude