change that hoists the redirect-free reqwest::Client into a single, lazily-initialized static so every call to validate_jwt re-uses the same handle (and therefore the same connection-pool, DNS cache, TLS session cache, etc)

This commit is contained in:
Mick Grove 2025-07-14 17:22:51 -07:00
commit 352d8ff659
2 changed files with 4 additions and 6 deletions

View file

@ -688,7 +688,7 @@ async fn timed_validate_single_match<'a>(
return;
}
match jwt::validate_jwt(&token, client).await {
match jwt::validate_jwt(&token).await {
Ok((ok, msg)) => {
m.validation_success = ok;
m.validation_response_body = msg;