minio obj locking

This commit is contained in:
wangchuxiao 2022-08-01 10:58:29 +08:00 committed by Xinwei Xiong(cubxxw-openim)
parent 01adec6003
commit 1096dcd49e

View File

@ -41,7 +41,7 @@ func MinioInit() {
}
opt := minio.MakeBucketOptions{
Region: config.Config.Credential.Minio.Location,
ObjectLocking: false,
ObjectLocking: true,
}
err = minioClient.MakeBucket(context.Background(), config.Config.Credential.Minio.Bucket, opt)
if err != nil {