runtime mgmt: avoid pull_log resource hog

This commit is contained in:
occheung 2024-09-19 17:16:47 +08:00
parent 47cddae04f
commit 8e28d12ad0

View File

@ -261,6 +261,7 @@ mod remote_coremgmt {
if last { if last {
write_chunk(stream, &buffer).await?; write_chunk(stream, &buffer).await?;
buffer.clear(); buffer.clear();
task::r#yield().await;
} }
} }
Ok(packet) => { Ok(packet) => {