Skip to content

Commit

Permalink
Change url format
Browse files Browse the repository at this point in the history
  • Loading branch information
xSke committed Feb 9, 2024
1 parent 38d177b commit b4da066
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ impl Storer {
pub async fn store(&self, res: &ProcessOutput) -> anyhow::Result<StoreResult> {
// errors here are all going to be internal
let encoded_hash = res.hash.to_string();
let path = format!("{}/{}.webp", &encoded_hash[..2], &encoded_hash[2..]);
let path = format!("images/{}/{}.webp", &encoded_hash[..2], &encoded_hash[2..]);
let res = self
.bucket
.put_object_with_content_type(&path, &res.data_webp, "image/webp")
Expand Down

0 comments on commit b4da066

Please sign in to comment.