|
|
@ -55,6 +55,7 @@ async fn save_now_to(chain: &Chain<String>, to: impl AsRef<Path>) -> io::Result<
|
|
|
|
let mut file = AsyncWriteCompressor::new(file, PreferencesBuilder::new()
|
|
|
|
let mut file = AsyncWriteCompressor::new(file, PreferencesBuilder::new()
|
|
|
|
.compression_level(lz4f::CLEVEL_HIGH).build())?;
|
|
|
|
.compression_level(lz4f::CLEVEL_HIGH).build())?;
|
|
|
|
file.write_all(&chain[..]).await?;
|
|
|
|
file.write_all(&chain[..]).await?;
|
|
|
|
|
|
|
|
file.flush().await?;
|
|
|
|
file.shutdown().await?;
|
|
|
|
file.shutdown().await?;
|
|
|
|
Ok(())
|
|
|
|
Ok(())
|
|
|
|
}
|
|
|
|
}
|
|
|
|