Permalink
Browse files

Refactor events to work with waiters

  • Loading branch information...
1 parent c726b27 commit b49e872d9159a07910dfb24146fe60c2faeef5a1 @lsegal lsegal committed Jul 16, 2013
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/request.js
View
@@ -575,6 +575,14 @@ AWS.Request = inherit({
default:
return [this.response];
}
+ },
+
+ retryDelay: function retryDelay(response) {
+ var delay = 0;
+ if (!response.error.redirect) {
+ delay = this.service.retryDelays()[response.retryCount-1] || 0;
+ }
+ return delay;
}
});

0 comments on commit b49e872

Please sign in to comment.