commit | 141a4fabd772dd4b7c70b581258ca5b544720ac3 | [log] [tgz] |
---|---|---|
author | Jun Mukai <mukai@google.com> | Wed Feb 10 17:01:36 2016 -0800 |
committer | Jun Mukai <mukai@google.com> | Wed Feb 10 17:01:36 2016 -0800 |
tree | 8fdb05ea01ef48176aa669f1d1003e48a38bfbdc | |
parent | 09997213f8753cd457abd6db5b80701ce499e903 [diff] |
Fix the waiting strategy of interval. When the interval is really long but the user sets earlier deadline, time.Sleep() will wait between the API calls longer than expected. That situation would happen when we will introduce interval per error code and set long interval for some errors (like 30s for ResourceExhausted). Change-Id: I3669e9103a20b1655ea6985cb343e8093e66fc3f