mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: using zstd as collab_db compression method and Deflated as zip file compression method (#4318)
This commit is contained in:
@ -21,4 +21,4 @@ tempfile = "3.8.1"
|
||||
validator = "0.16.0"
|
||||
|
||||
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
||||
zip = "0.6.6"
|
||||
zip = { version = "0.6.6", features = ["deflate"] }
|
||||
|
@ -79,7 +79,7 @@ pub fn zip_folder(src_path: impl AsRef<Path>, dest_path: &Path) -> io::Result<()
|
||||
|
||||
let file = File::create(dest_path)?;
|
||||
let mut zip = ZipWriter::new(file);
|
||||
let options = FileOptions::default().compression_method(zip::CompressionMethod::Stored);
|
||||
let options = FileOptions::default().compression_method(zip::CompressionMethod::Deflated);
|
||||
|
||||
for entry in WalkDir::new(&src_path) {
|
||||
let entry = entry?;
|
||||
|
Reference in New Issue
Block a user