You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-11-20 12:02:22 +03:00
Make the HTTP client factory reuse the underlying client
This avoids duplicating clients, and makes it so that they all share the same connection pool.
This commit is contained in:
@@ -191,8 +191,7 @@ async fn fetch_jwks(
|
||||
.unwrap();
|
||||
|
||||
let mut client = http_client_factory
|
||||
.client()
|
||||
.await?
|
||||
.client("client.fetch_jwks")
|
||||
.response_body_to_bytes()
|
||||
.json_response::<PublicJsonWebKeySet>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user