From 93e25169fb358fbc9b9901ed45ea8819817299a0 Mon Sep 17 00:00:00 2001 From: occheung Date: Thu, 19 Sep 2024 17:16:47 +0800 Subject: [PATCH] runtime mgmt: avoid pull_log resource hog --- src/runtime/src/mgmt.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/runtime/src/mgmt.rs b/src/runtime/src/mgmt.rs index 64523f6..69c1d8d 100644 --- a/src/runtime/src/mgmt.rs +++ b/src/runtime/src/mgmt.rs @@ -261,6 +261,7 @@ mod remote_coremgmt { if last { write_chunk(stream, &buffer).await?; buffer.clear(); + task::r#yield().await; } } Ok(packet) => {