From 12ef982eb99b4ea6924ec52394fac82e2338a3c4 Mon Sep 17 00:00:00 2001 From: Cristina Leon Date: Thu, 12 Oct 2023 18:23:12 +0000 Subject: [PATCH] Locate: Increase early-exit probability to 50% --- handler/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler/handler.go b/handler/handler.go index 2b7656ed..996b3a1e 100644 --- a/handler/handler.go +++ b/handler/handler.go @@ -34,7 +34,7 @@ import ( var ( errFailedToLookupClient = errors.New("Failed to look up client location") rand = mathx.NewRandom(time.Now().UnixNano()) - earlyExitProbability = 0.3 + earlyExitProbability = 0.5 tooManyRequests = "Too many requests per minute. Please contact support@measurementlab.net." limitIntervals = []limitInterval{ {hour: 1, minute: 15},