Skip to content

Commit

Permalink
1MB for chunk size
Browse files Browse the repository at this point in the history
  • Loading branch information
cshum committed Aug 30, 2024
1 parent 6843887 commit 3b5a9bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/s3storage/s3storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func (s *S3Storage) Get(r *http.Request, image string) (*imagor.Blob, error) {
blob = imagor.NewBlob(func() (io.ReadCloser, int64, error) {
r := NewS3ReadSeeker(
ctx, s.S3, s.Bucket, image,
1<<10*100, // 100 KB
1<<10*1000, // 1 MB
)
out, err := r.Head()
if e, ok := err.(awserr.Error); ok && (e.Code() == s3.ErrCodeNoSuchKey || e.Code() == "NotFound") {
Expand Down

0 comments on commit 3b5a9bd

Please sign in to comment.