From 680a649a2128aea805e76e1720b4116bae59d1d2 Mon Sep 17 00:00:00 2001 From: "x.zhou" Date: Fri, 9 Jun 2023 16:10:33 +0800 Subject: [PATCH] Fix the wrong argument for credentials.NewStaticV4() --- pkg/s3/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/s3/client.go b/pkg/s3/client.go index ebb75bf..e720d41 100644 --- a/pkg/s3/client.go +++ b/pkg/s3/client.go @@ -52,7 +52,7 @@ func NewClient(cfg *Config) (*s3Client, error) { endpoint = u.Hostname() + ":" + u.Port() } minioClient, err := minio.New(endpoint, &minio.Options{ - Creds: credentials.NewStaticV4(client.Config.AccessKeyID, client.Config.SecretAccessKey, client.Config.Region), + Creds: credentials.NewStaticV4(client.Config.AccessKeyID, client.Config.SecretAccessKey, ""), Secure: ssl, }) if err != nil {