This commit is contained in:
wangchuxiao
2022-08-01 14:33:01 +08:00
parent ef9c291d9a
commit 9136838b63
4 changed files with 13 additions and 8 deletions
+4 -2
View File
@@ -47,8 +47,10 @@ func MinioInit() {
return
}
opt := minio.MakeBucketOptions{
Region: config.Config.Credential.Minio.Location,
ObjectLocking: false,
Region: config.Config.Credential.Minio.Location,
}
if config.Config.Credential.Minio.IsDistributedMod == true {
opt.ObjectLocking = true
}
err = MinioClient.MakeBucket(context.Background(), config.Config.Credential.Minio.Bucket, opt)
if err != nil {