Skip to content

Commit

Permalink
chore: resolve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
KKould committed Sep 29, 2024
1 parent e42a204 commit 075d34f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
3 changes: 2 additions & 1 deletion fusio/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ mod error;
#[cfg(feature = "fs")]
pub mod fs;
pub mod local;
pub mod parse;
#[cfg(feature = "fs")]
pub mod options;
pub mod path;
pub mod remotes;

Expand Down
9 changes: 0 additions & 9 deletions fusio/src/local/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,3 @@ pub use tokio::fs::*;
#[cfg(all(feature = "tokio-uring", target_os = "linux", feature = "fs"))]
#[allow(unused)]
pub use tokio_uring::fs::*;

#[cfg(feature = "fs")]
cfg_if::cfg_if! {
if #[cfg(feature = "tokio")] {
pub type LocalFs = TokioFs;
} else if #[cfg(feature = "monoio")] {
pub type LocalFs = MonoIoFs;
}
}
4 changes: 2 additions & 2 deletions fusio/src/parse.rs → fusio/src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ impl FsOptions {
if let Some(sign_payload) = sign_payload {
builder = builder.with_unsigned_payload(!sign_payload);
}
if let Some(checksum) = checksum {
// TODO
if matches!(checksum, Some(true)) {
builder = builder.with_checksum_algorithm(object_store::aws::Checksum::SHA256);
}
Ok(Arc::new(S3Store::new(builder.build()?)))
}
Expand Down

0 comments on commit 075d34f

Please sign in to comment.