Skip to content

Commit

Permalink
Add content encoding and only use rev in key
Browse files Browse the repository at this point in the history
  • Loading branch information
vlinkz committed Mar 20, 2024
1 parent bc5ce1a commit 7cbaee2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/s3/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,9 @@ pub async fn create_db(
let body = ByteStream::from_path(Path::new(&format!("{}.br", db))).await?;
client
.put_object()
.content_encoding("br")
.bucket(bucket)
.key(&format!("{}/{}", channel, rev))
.key(rev)
.body(body)
.send()
.await?;
Expand Down

0 comments on commit 7cbaee2

Please sign in to comment.