rustls upgrade: supply correct client in test cases

This commit is contained in:
Lewin Bormann
2022-04-18 18:39:57 -07:00
parent 32b6d8fa63
commit 378dca1148
3 changed files with 9 additions and 8 deletions

View File

@@ -325,14 +325,14 @@ impl ApplicationDefaultCredentialsAuthenticator {
pub async fn builder(
opts: ApplicationDefaultCredentialsFlowOpts,
) -> ApplicationDefaultCredentialsTypes<DefaultHyperClient> {
Self::with_client(DefaultHyperClient, opts).await
Self::with_client(opts, DefaultHyperClient).await
}
/// Use the builder pattern to deduce which model of authenticator should be used and allow providing a hyper client
#[cfg(feature = "service_account")]
pub async fn with_client<C>(
client: C,
opts: ApplicationDefaultCredentialsFlowOpts,
client: C,
) -> ApplicationDefaultCredentialsTypes<C>
where
C: HyperClientBuilder,