fix(music-link): give the Tidal/proxy fast path a timeout and a shared client

Both requests built bare reqwest clients with no timeout; a stalled
connection parked the fast path forever and the Odesli fallback, which only
runs afterwards, never got its turn. One OnceLock client with the same
10 s / 5 s budget as odesli.rs.

cc
This commit is contained in:
vicrodh committed 2026-09-13 03:36:50 -06:00
1 parent 87410667ea
commit daf449baec
3 files changed
+66 -12

No files matched your search

+5
View File
@@ -25,3 +25,8 @@ log = { workspace = true }
# Error handling
thiserror = { workspace = true }
[dev-dependencies]
# The timeout test builds a reqwest client, which panics with "No provider
# set" until a process-level rustls CryptoProvider exists (same as qbz-qobuz).
rustls = { version = "0.23", features = ["aws_lc_rs"] }