Spelling (#7137)
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
@@ -149,7 +149,7 @@ impl AppsManagerClient {
|
||||
}
|
||||
|
||||
fn ensure_default_apps(&self) -> Result<(), String> {
|
||||
// TODO(Douwe): we have the same check in cache, consider unfiying that
|
||||
// TODO(Douwe): we have the same check in cache, consider unifying that
|
||||
const CLOCK_HTML: &str = include_str!("../goose_apps/clock.html");
|
||||
|
||||
// Check if clock app exists
|
||||
|
||||
@@ -441,7 +441,7 @@ async fn create_streamable_http_client(
|
||||
let client_res = McpClient::connect(transport, timeout_duration, provider.clone()).await;
|
||||
|
||||
if extract_auth_error(&client_res).is_some() {
|
||||
let am = oauth_flow(&uri.to_string(), &name.to_string())
|
||||
let auth_manager = oauth_flow(&uri.to_string(), &name.to_string())
|
||||
.await
|
||||
.map_err(|_| ExtensionError::SetupError("auth error".to_string()))?;
|
||||
let mut auth_headers = HeaderMap::new();
|
||||
@@ -452,7 +452,7 @@ async fn create_streamable_http_client(
|
||||
.map_err(|_| {
|
||||
ExtensionError::ConfigError("could not construct http client".to_string())
|
||||
})?;
|
||||
let auth_client = AuthClient::new(auth_http_client, am);
|
||||
let auth_client = AuthClient::new(auth_http_client, auth_manager);
|
||||
let transport = StreamableHttpClientTransport::with_client(
|
||||
auth_client,
|
||||
StreamableHttpClientTransportConfig {
|
||||
|
||||
Reference in New Issue
Block a user