You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-11-21 23:00:50 +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:
@@ -188,7 +188,7 @@ pub(crate) async fn get(
|
||||
CodeOrError::Code { code } => code,
|
||||
};
|
||||
|
||||
let http_service = http_client_factory.http_service().await?;
|
||||
let http_service = http_client_factory.http_service("upstream_oauth2.callback");
|
||||
|
||||
// Discover the provider
|
||||
let metadata = metadata_cache.get(&http_service, &provider.issuer).await?;
|
||||
|
||||
Reference in New Issue
Block a user