globals: make read only variables as constants. (#3326)

This commit is contained in:
Bala FA 2016-11-22 20:13:20 -08:00 committed by Harshavardhana
parent baf1c1638d
commit ed6e781679

View File

@ -43,6 +43,15 @@ const (
// Add new global values here. // 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 ( var (
globalQuiet = false // Quiet flag set via command line. globalQuiet = false // Quiet flag set via command line.
globalIsDistXL = false // "Is Distributed?" flag. globalIsDistXL = false // "Is Distributed?" flag.
@ -69,15 +78,6 @@ var (
) )
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. // Keeps the connection active by waiting for following amount of time.
// Primarily used in ListenBucketNotification. // Primarily used in ListenBucketNotification.
globalSNSConnAlive = 5 * time.Second globalSNSConnAlive = 5 * time.Second