mirror of
https://github.com/pgsty/minio.git
synced 2026-11-02 05:42:06 +03:00
style: apply gofumpt to migration globals
Signed-off-by: Feng Ruohang <rh@vonng.com>
This commit is contained in:
@@ -306,8 +306,10 @@ func loadBucketMetadataParseUnderLock(ctx context.Context, objectAPI ObjectLayer
|
|||||||
return loadBucketMetadataParse(ctx, objectAPI, bucket, parse)
|
return loadBucketMetadataParse(ctx, objectAPI, bucket, parse)
|
||||||
}
|
}
|
||||||
|
|
||||||
var bucketMetadataMigrationTimeout = newDynamicTimeout(5*time.Second, time.Second)
|
var (
|
||||||
var errBucketMetadataMigrationLockUnavailable = errors.New("bucket metadata migration lock unavailable")
|
bucketMetadataMigrationTimeout = newDynamicTimeout(5*time.Second, time.Second)
|
||||||
|
errBucketMetadataMigrationLockUnavailable = errors.New("bucket metadata migration lock unavailable")
|
||||||
|
)
|
||||||
|
|
||||||
// loadBucketMetadata loads and migrates to bucket metadata.
|
// loadBucketMetadata loads and migrates to bucket metadata.
|
||||||
func loadBucketMetadata(ctx context.Context, objectAPI ObjectLayer, bucket string) (BucketMetadata, error) {
|
func loadBucketMetadata(ctx context.Context, objectAPI ObjectLayer, bucket string) (BucketMetadata, error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user