Skip to content

Commit

Permalink
- updated readme with delay and factor parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Sushim Dutta committed Oct 31, 2019
1 parent 42cb3dd commit f27c79f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ var options = {
retry : 2, // will retry the call twice, in case of error.
verbose_logging : false, // will log errors only, if set to be true, will log all actions
accepted: [ 400, 404 ] // Accepted HTTP Status codes (will not retry if request response has any of these HTTP Status Code)
delay: 2000 // will delay retries by 2000 ms. The default is 100.
factor: 2 // will multiple the delay by the factor each time a retry is attempted.
};
rp(options)
Expand Down

0 comments on commit f27c79f

Please sign in to comment.