chore: clean up optional dependencies (#546)

This commit is contained in:
Jack Amadeo 2026-01-13 21:29:35 -05:00 • committed by GitHub
commit 46e149ee8b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -335,7 +335,12 @@ impl<C: StreamableHttpClient> Worker for StreamableHttpClientWorker<C> {
};
// Store session info for cleanup when run() exits (not spawned, so cleanup completes before close() returns)
let session_cleanup_info = session_id.as_ref().map(|sid| {
(self.client.clone(), config.uri.clone(), sid.clone(), config.auth_header.clone())
(
self.client.clone(),
config.uri.clone(),
sid.clone(),
config.auth_header.clone(),
)
});
context.send_to_handler(message).await?;