From 2348ae7a193eb043c3277d253169584f84b5303b Mon Sep 17 00:00:00 2001 From: Bala FA Date: Thu, 2 Mar 2017 18:28:39 +0530 Subject: [PATCH] Make default values as constants (#3828) --- cmd/retry.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/retry.go b/cmd/retry.go index 5e42182c6..1624b0e2d 100644 --- a/cmd/retry.go +++ b/cmd/retry.go @@ -1,5 +1,5 @@ /* - * Minio Cloud Storage, (C) 2016 Minio, Inc. + * Minio Cloud Storage, (C) 2016, 2017 Minio, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -122,7 +122,7 @@ func newRetryTimerWithJitter(unit time.Duration, cap time.Duration, jitter float } // Default retry constants. -var ( +const ( defaultRetryUnit = time.Second // 1 second. defaultRetryCap = 30 * time.Second // 30 seconds. )