Skip to content

Commit 827dffd

Browse files
committed
fix(lib): streamline async execution by removing unnecessary runtime entry
1 parent 58cec7d commit 827dffd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,7 @@ fn run_async<F, T>(future: F) -> T
260260
where
261261
F: std::future::Future<Output = T>,
262262
{
263-
let runtime = get_runtime();
264-
let _enter = runtime.enter();
265-
runtime.block_on(future)
263+
get_runtime().block_on(future)
266264
}
267265

268266
/// Create a new MCP client

0 commit comments

Comments
 (0)