Fix OAuth argument comments

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Ahmed Ibrahim
2026-04-27 10:25:29 +00:00
parent 2b68005d97
commit 276a97340c
2 changed files with 11 additions and 3 deletions

View File

@@ -133,7 +133,7 @@ impl OAuthHttpClient {
name: OAUTH_DISCOVERY_HEADER.to_string(),
value: OAUTH_DISCOVERY_VERSION.to_string(),
}],
None,
/*body*/ None,
Some(DISCOVERY_TIMEOUT),
)
.await

View File

@@ -876,7 +876,11 @@ mod tests {
let persistor = OAuthPersistor::new(
tokens.server_name.clone(),
OAuthHttpClient::new(Arc::new(FailingHttpClient), None, None)?,
OAuthHttpClient::new(
Arc::new(FailingHttpClient),
/*http_headers*/ None,
/*env_http_headers*/ None,
)?,
OAuthCredentialsStoreMode::File,
Some(tokens.clone()),
);
@@ -904,7 +908,11 @@ mod tests {
let persistor = OAuthPersistor::new(
tokens.server_name.clone(),
OAuthHttpClient::new(Arc::new(FailingHttpClient), None, None)?,
OAuthHttpClient::new(
Arc::new(FailingHttpClient),
/*http_headers*/ None,
/*env_http_headers*/ None,
)?,
OAuthCredentialsStoreMode::File,
Some(tokens),
);