From 6f968342dc3d2502665f2ea27a18c37310fa6c9c Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Mon, 1 Aug 2022 11:49:50 +0800 Subject: [PATCH] fix bug --- internal/api/third/minio_init.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/api/third/minio_init.go b/internal/api/third/minio_init.go index 398072c6c..8c1038e86 100644 --- a/internal/api/third/minio_init.go +++ b/internal/api/third/minio_init.go @@ -31,8 +31,8 @@ func MinioInit() { return } opts := &minio.Options{ - Creds: credentials.NewStaticV4(config.Config.Credential.Minio.AccessKeyID, config.Config.Credential.Minio.SecretAccessKey, ""), - Region: config.Config.Credential.Minio.Location, + Creds: credentials.NewStaticV4(config.Config.Credential.Minio.AccessKeyID, config.Config.Credential.Minio.SecretAccessKey, ""), + //Region: config.Config.Credential.Minio.Location, } if minioUrl.Scheme == "http" { opts.Secure = false @@ -48,7 +48,7 @@ func MinioInit() { } opt := minio.MakeBucketOptions{ Region: config.Config.Credential.Minio.Location, - ObjectLocking: true, + ObjectLocking: false, } err = MinioClient.MakeBucket(context.Background(), config.Config.Credential.Minio.Bucket, opt) if err != nil {