mirror of
https://github.com/minio/minio.git
synced 2025-11-10 05:59:43 -05:00
move gofumpt to golang-ci
This commit is contained in:
@@ -332,8 +332,10 @@ func (sys *BucketTargetSys) set(bucket BucketInfo, meta BucketMetadata) {
|
||||
}
|
||||
|
||||
// getRemoteTargetInstanceTransport contains a singleton roundtripper.
|
||||
var getRemoteTargetInstanceTransport http.RoundTripper
|
||||
var getRemoteTargetInstanceTransportOnce sync.Once
|
||||
var (
|
||||
getRemoteTargetInstanceTransport http.RoundTripper
|
||||
getRemoteTargetInstanceTransportOnce sync.Once
|
||||
)
|
||||
|
||||
// Returns a minio-go Client configured to access remote host described in replication target config.
|
||||
func (sys *BucketTargetSys) getRemoteTargetClient(tcfg *madmin.BucketTarget) (*TargetClient, error) {
|
||||
|
||||
@@ -256,8 +256,10 @@ const (
|
||||
// Random number state.
|
||||
// We generate random temporary file names so that there's a good
|
||||
// chance the file doesn't exist yet.
|
||||
var randN uint32
|
||||
var randmu sync.Mutex
|
||||
var (
|
||||
randN uint32
|
||||
randmu sync.Mutex
|
||||
)
|
||||
|
||||
// Temp files created in default Tmp dir
|
||||
var globalTestTmpDir = os.TempDir()
|
||||
|
||||
@@ -406,8 +406,10 @@ type minioProfiler interface {
|
||||
}
|
||||
|
||||
// Global profiler to be used by service go-routine.
|
||||
var globalProfiler map[string]minioProfiler
|
||||
var globalProfilerMu sync.Mutex
|
||||
var (
|
||||
globalProfiler map[string]minioProfiler
|
||||
globalProfilerMu sync.Mutex
|
||||
)
|
||||
|
||||
// dump the request into a string in JSON format.
|
||||
func dumpRequest(r *http.Request) string {
|
||||
|
||||
Reference in New Issue
Block a user