Skip to content

Commit

Permalink
refactor: re-export AwsCredential in fusio-log
Browse files Browse the repository at this point in the history
  • Loading branch information
crwen committed Jan 24, 2025
1 parent 98d22b3 commit d3fdeb6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions fusio-log/src/fs/mod.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
#[cfg(feature = "aws")]
pub use fusio::remotes::aws::AwsCredential;
pub use fusio::{MaybeSend, SeqRead, Write};
pub(crate) mod hash;
4 changes: 2 additions & 2 deletions fusio-log/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ mod tests {
use tokio::pin;

use crate::{
fs::{SeqRead, Write},
fs::{AwsCredential, SeqRead, Write},
Decode, Encode, FsOptions, Options, Path,
};

Expand Down Expand Up @@ -323,7 +323,7 @@ mod tests {
let path = Path::from_url_path("log").unwrap();
let option = Options::new(path).fs(FsOptions::S3 {
bucket: "data".to_string(),
credential: Some(fusio::remotes::aws::AwsCredential {
credential: Some(AwsCredential {
key_id: "key_id".to_string(),
secret_key: "secret_key".to_string(),
token: None,
Expand Down

0 comments on commit d3fdeb6

Please sign in to comment.