Skip to content

Commit

Permalink
[GB] make sure to delay retry after recoverable error
Browse files Browse the repository at this point in the history
  • Loading branch information
askmike committed Oct 19, 2018
1 parent 503f0a1 commit 058165f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions exchange/wrappers/gdax.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ Trader.prototype.processResponse = function(method, next) {
if(error) {
if(includes(error.message, recoverableErrors)) {
error.notFatal = true;
error.backoffDelay = 1000;
}

if(
Expand All @@ -98,8 +99,6 @@ Trader.prototype.processResponse = function(method, next) {
error.retry = 10;
}

console.log(error.message);

return next(error);
}

Expand Down

0 comments on commit 058165f

Please sign in to comment.