Skip to content

Commit 148c6e0

Browse files
fix: mcp [non-exhaustive] error
1 parent c2410d2 commit 148c6e0

File tree

1 file changed

+2
-6
lines changed
  • crates/openfang-runtime/src

1 file changed

+2
-6
lines changed

crates/openfang-runtime/src/mcp.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ use rmcp::service::RunningService;
1414
use rmcp::{RoleClient, ServiceExt};
1515
use serde::{Deserialize, Serialize};
1616
use std::collections::HashMap;
17-
use std::sync::Arc;
1817
use tracing::{debug, info};
1918

2019
// ---------------------------------------------------------------------------
@@ -307,11 +306,8 @@ impl McpConnection {
307306
}
308307
}
309308

310-
let config = StreamableHttpClientTransportConfig {
311-
uri: Arc::from(url),
312-
custom_headers,
313-
..Default::default()
314-
};
309+
let config =
310+
StreamableHttpClientTransportConfig::with_uri(url).custom_headers(custom_headers);
315311

316312
let transport = StreamableHttpClientTransport::from_config(config);
317313

0 commit comments

Comments
 (0)