From 64954a3d5cff057ba9cccc5590827d22fd42e2fb Mon Sep 17 00:00:00 2001 From: slonkazoid Date: Sun, 21 Apr 2024 00:46:28 +0300 Subject: [PATCH] respect compession level --- src/main.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 59a8749..34a2a0f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -335,7 +335,11 @@ async fn main() -> eyre::Result<()> { let cache_file = cache_file.into_std().await; tokio::task::spawn_blocking(move || { std::io::Write::write_all( - &mut zstd::stream::write::Encoder::new(cache_file, 3)?.auto_finish(), + &mut zstd::stream::write::Encoder::new( + cache_file, + config.cache.compression_level, + )? + .auto_finish(), &serialized, ) })