diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-07-15 15:03:11 +0100 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-07-15 15:03:33 +0100 |
| commit | 8cea674f58e806c22d2887cff5e6f76bc4dba0db (patch) | |
| tree | c912c086c3d9b6598e68bb5d66ecf928d28ad940 /maintainers.yaml | |
| parent | 8d42d8c3e8e65ff1892effa2d1058d9f2422ce2b (diff) | |
feat(client): skip relays that just timeout
Prevent repeated attempts to connect to relays that have previously
failed due to connection timeouts within the current session,
improving overall performance and reliability.
Added a `relays_not_to_retry` map to the `Client` struct to store
relays to skip and their reasons. Implemented methods
`skip_relay_for_session` and `is_relay_skipped_for_session` to
manage this map.
Relays are added to the skip list upon connection timeouts. Subsequent
attempts to use these skipped relays during the same session will
immediately fail with the recorded reason, avoiding unnecessary network
calls. Progress bars are updated to reflect skipped relays and their
reasons.
Diffstat (limited to 'maintainers.yaml')
0 files changed, 0 insertions, 0 deletions