From 47cbcd47789be77f3a1c44ba605853f50c448e8a Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Thu, 15 Apr 2021 14:21:55 -0400 Subject: [PATCH] 17529: Update comment. Arvados-DCO-1.1-Signed-off-by: Tom Clegg --- lib/cloud/ec2/ec2.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cloud/ec2/ec2.go b/lib/cloud/ec2/ec2.go index 48f069611a..071c95006c 100644 --- a/lib/cloud/ec2/ec2.go +++ b/lib/cloud/ec2/ec2.go @@ -351,8 +351,8 @@ func (err rateLimitError) EarliestRetry() time.Time { func wrapError(err error, throttleValue *atomic.Value) error { if request.IsErrorThrottle(err) { - // Back off exponentially until a create call either - // succeeds or returns a non-throttle error. + // Back off exponentially until an upstream call + // either succeeds or returns a non-throttle error. d, _ := throttleValue.Load().(time.Duration) d = d*3/2 + time.Second if d < throttleDelayMin { -- 2.30.2