Skip to content

Commit

Permalink
fix: retry (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
d2lam authored and jithine committed Mar 14, 2019
1 parent a9bb865 commit d7897f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class ExecutorQueue extends Executor {
this.redis[funcName](...args), breaker);
this.requestBreaker = new Breaker(requestretry, config.breaker);
this.requestRetryStrategy = (err, response) =>
response.statusCode === 201 || response.statusCode === 200;
err || (response.statusCode !== 201 && response.statusCode !== 200);

this.fuseBox = new FuseBox();
this.fuseBox.addFuse(this.queueBreaker);
Expand Down

0 comments on commit d7897f9

Please sign in to comment.