projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
17529: Update comment.
[arvados.git]
/
lib
/
cloud
/
ec2
/
ec2.go
diff --git
a/lib/cloud/ec2/ec2.go
b/lib/cloud/ec2/ec2.go
index 48f069611a0300cc6d3bbcbaab0a7ba32b46c435..071c95006c9b305b1f47737bbb6eab588961785c 100644
(file)
--- 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) {
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 a
n upstream call
+ //
either
succeeds or returns a non-throttle error.
d, _ := throttleValue.Load().(time.Duration)
d = d*3/2 + time.Second
if d < throttleDelayMin {
d, _ := throttleValue.Load().(time.Duration)
d = d*3/2 + time.Second
if d < throttleDelayMin {