Skip to content

Commit

Permalink
Fix endpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Xuanwo <github@xuanwo.io>
  • Loading branch information
Xuanwo committed Nov 14, 2022
1 parent 17ebf48 commit c1a725f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cache/s3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ pub struct S3Cache {

impl S3Cache {
/// Create a new `S3Cache` storing data in `bucket`.
pub fn new(bucket: &str, _: &str, _: bool, key_prefix: &str) -> Result<S3Cache> {
pub fn new(bucket: &str, endpoint: &str, _: bool, key_prefix: &str) -> Result<S3Cache> {
let mut cfg = s3::Builder::default();
cfg.bucket(bucket);
cfg.endpoint(&format!("http://{endpoint}"));
cfg.root(key_prefix);

let op = Operator::from(cfg.build()?);
Expand Down

0 comments on commit c1a725f

Please sign in to comment.