File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
crates/openfang-runtime/src Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ use rmcp::service::RunningService;
1414use rmcp:: { RoleClient , ServiceExt } ;
1515use serde:: { Deserialize , Serialize } ;
1616use std:: collections:: HashMap ;
17- use std:: sync:: Arc ;
1817use 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
You can’t perform that action at this time.
0 commit comments