From 2a112bf3c8ae4029fe0a306842498e48463e96aa Mon Sep 17 00:00:00 2001 From: Louis Chan <91093020+louis-launchdarkly@users.noreply.github.com> Date: Fri, 10 May 2024 13:53:01 -0700 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Casey Waldren --- ldclient.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ldclient.go b/ldclient.go index 5ddb0a90..bd2f8f77 100644 --- a/ldclient.go +++ b/ldclient.go @@ -34,8 +34,8 @@ import ( // Version is the SDK version. const Version = internal.SDKVersion -// HighWaitForSeconds is the initialization wait time threshold that we will log a warning message -const HighWaitForSeconds = 60 +// highWaitForSeconds is the initialization wait time threshold that we will log a warning message +const highWaitForSeconds = 60 const ( boolVarFuncName = "LDClient.BoolVariation" @@ -333,8 +333,8 @@ func MakeCustomClient(sdkKey string, config Config, waitFor time.Duration) (*LDC // If you use a long duration and wait for the timeout, then any network delays will cause // your application to wait a long time before continuing execution. - if waitFor.Seconds() > HighWaitForSeconds { - loggers.Warnf("Make Client was called with a timeout greater than %d. "+ + if waitFor.Seconds() > highWaitForSeconds { + loggers.Warnf("Client was created was with a timeout greater than %d. "+ "We recommend a timeout of less than %d seconds", HighWaitForSeconds) }