From 234a6c267d28b28ce38f0af296fa328dbc241454 Mon Sep 17 00:00:00 2001 From: Sydonian <794346190@qq.com> Date: Mon, 16 Dec 2024 16:19:33 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3S3=E4=B8=8A=E4=BC=A0=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=97=B6=E4=BD=BF=E7=94=A8=E5=86=85=E5=AE=B9=E4=B8=8D?= =?UTF-8?q?=E5=AF=B9=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/pkgs/storage/s3/shard_store.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/common/pkgs/storage/s3/shard_store.go b/common/pkgs/storage/s3/shard_store.go index 23d4eee..cc70f0a 100644 --- a/common/pkgs/storage/s3/shard_store.go +++ b/common/pkgs/storage/s3/shard_store.go @@ -197,10 +197,9 @@ func (s *ShardStore) createWithCalcSha256(stream io.Reader) (types.FileInfo, err counter := io2.NewCounter(hashStr) _, err := s.cli.PutObject(context.TODO(), &s3.PutObjectInput{ - Bucket: aws.String(s.bucket), - Key: aws.String(key), - Body: counter, - ChecksumAlgorithm: s3types.ChecksumAlgorithmSha256, + Bucket: aws.String(s.bucket), + Key: aws.String(key), + Body: counter, }) if err != nil { log.Warnf("uploading file %v: %v", key, err)