mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-16 01:42:55 +00:00
Yield in between
This commit is contained in:
@@ -371,7 +371,7 @@ pub(crate) async fn main(cmd: &LayerCmd) -> Result<()> {
|
||||
)
|
||||
.await;
|
||||
match stats {
|
||||
Ok(stats) => println!("Statistics for {file_name}: {stats:#?}\n"),
|
||||
Ok(stats) => println!("Statistics for {file_name}: {stats:?}\n"),
|
||||
Err(e) => eprintln!("Error for {file_name}: {e:?}"),
|
||||
};
|
||||
});
|
||||
|
||||
@@ -393,6 +393,7 @@ impl ImageLayer {
|
||||
)
|
||||
.await?;
|
||||
stats.push((image_compression, size));
|
||||
tokio::task::yield_now().await;
|
||||
}
|
||||
Ok(stats)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user