forked from slonk/bingus-blog
respect compession level
This commit is contained in:
parent
5930df6609
commit
64954a3d5c
1 changed files with 5 additions and 1 deletions
|
@ -335,7 +335,11 @@ async fn main() -> eyre::Result<()> {
|
||||||
let cache_file = cache_file.into_std().await;
|
let cache_file = cache_file.into_std().await;
|
||||||
tokio::task::spawn_blocking(move || {
|
tokio::task::spawn_blocking(move || {
|
||||||
std::io::Write::write_all(
|
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,
|
&serialized,
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue