mirror of
https://github.com/minio/minio.git
synced 2024-12-25 14:45:54 -05:00
globals: make read only variables as constants. (#3326)
This commit is contained in:
parent
baf1c1638d
commit
ed6e781679
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user