From ed6e781679607d313fb17b626b2681dbcabddc29 Mon Sep 17 00:00:00 2001 From: Bala FA Date: Tue, 22 Nov 2016 20:13:20 -0800 Subject: [PATCH] globals: make read only variables as constants. (#3326) --- cmd/globals.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/cmd/globals.go b/cmd/globals.go index 0ebf2e9d2..4a7d4cf57 100644 --- a/cmd/globals.go +++ b/cmd/globals.go @@ -43,6 +43,15 @@ const ( // Add new global values here. ) +const ( + // Limit fields size (except file) to 1Mib since Policy document + // can reach that size according to https://aws.amazon.com/articles/1434 + maxFormFieldSize = int64(1 * humanize.MiByte) + + // The maximum allowed difference between the request generation time and the server processing time + globalMaxSkewTime = 15 * time.Minute +) + var ( globalQuiet = false // Quiet flag set via command line. globalIsDistXL = false // "Is Distributed?" flag. @@ -69,15 +78,6 @@ var ( ) var ( - // Limit fields size (except file) to 1Mib since Policy document - // can reach that size according to https://aws.amazon.com/articles/1434 - maxFormFieldSize = int64(1 * humanize.MiByte) -) - -var ( - // The maximum allowed difference between the request generation time and the server processing time - globalMaxSkewTime = 15 * time.Minute - // Keeps the connection active by waiting for following amount of time. // Primarily used in ListenBucketNotification. globalSNSConnAlive = 5 * time.Second