Skip to content

Commit

Permalink
Merge pull request #377 from sohosai/feature/export-use-deflate
Browse files Browse the repository at this point in the history
ファイルエクポートをdeflateに
  • Loading branch information
arata-nvm authored Sep 27, 2024
2 parents cfc3b2a + 3a2ff36 commit 2e9bdff
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 51 deletions.
44 changes: 0 additions & 44 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 1 addition & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,7 @@ edition = "2021"

[workspace.dependencies]
anyhow = "1.0.79"
async_zip = { version = "0.0.17", features = [
"chrono",
"deflate",
"tokio",
"zstd",
] }
async_zip = { version = "0.0.17", features = ["chrono", "deflate", "tokio"] }
axum = { version = "0.7.4", features = ["macros", "multipart", "query"] }
aws-sdk-s3 = { version = "1.20.0", features = ["rt-tokio"] }
base64 = "0.22.0"
Expand Down
2 changes: 1 addition & 1 deletion crates/sos24-infrastructure/src/file_object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ impl FileObjectRepository for S3FileObjectRepository {
.await
.context("Failed to open file")?;

let zip_entry = ZipEntryBuilder::new(file_name.into(), Compression::Zstd)
let zip_entry = ZipEntryBuilder::new(file_name.into(), Compression::Deflate)
.last_modification_date(updated_at.into());
let mut zip_entry_stream = zip_writer
.write_entry_stream(zip_entry)
Expand Down

0 comments on commit 2e9bdff

Please sign in to comment.