Skip to content

Commit

Permalink
Merge branch 'release/0.4.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
s3rius committed Feb 24, 2022
2 parents 985c064 + 9cac6a6 commit 34c3f43
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rustus"
version = "0.4.4"
version = "0.4.5"
edition = "2021"
description = "TUS protocol implementation written in Rust."

Expand Down Expand Up @@ -113,5 +113,5 @@ httptest = "0.15.4"
[profile.release]
lto = true
panic = "abort"
opt-level = 2
opt-level = 3
codegen-units = 1
1 change: 1 addition & 0 deletions src/info_storages/file_info_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ impl InfoStorage for FileInfoStorage {
err
})?;
copy(&mut data.as_bytes(), &mut file).await?;
file.sync_data().await?;
Ok(())
}

Expand Down
1 change: 1 addition & 0 deletions src/storages/file_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ impl Storage for FileStorage {
})?;
let mut reader = BufReader::new(bytes);
copy(&mut reader, &mut file).await?;
file.sync_data().await?;
Ok(())
}

Expand Down

0 comments on commit 34c3f43

Please sign in to comment.