From 8e28d12ad02e084ebfb5c872bd82e2d55879a951 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 64523f67..69c1d8de 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) => {