From 3b5a9bd57cd3783a84fb110b9450bcf92d59c614 Mon Sep 17 00:00:00 2001 From: Adrian Shum Date: Sat, 31 Aug 2024 01:54:21 +0800 Subject: [PATCH] 1MB for chunk size --- storage/s3storage/s3storage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/s3storage/s3storage.go b/storage/s3storage/s3storage.go index bab1ff69d..96c9805f5 100644 --- a/storage/s3storage/s3storage.go +++ b/storage/s3storage/s3storage.go @@ -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") {