Skip to content

Commit

Permalink
fix: allow numRetries = 0
Browse files Browse the repository at this point in the history
  • Loading branch information
ycouble committed Sep 17, 2024
1 parent 30781f6 commit 311f99b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Typesense/Configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ export default class Configuration {
options.connectionTimeoutSeconds || options.timeoutSeconds || 5;
this.healthcheckIntervalSeconds = options.healthcheckIntervalSeconds || 60;
this.numRetries =
options.numRetries ||
this.nodes.length + (this.nearestNode == null ? 0 : 1) ||
(!isNaN(Number(options.numRetries)) ? options.numRetries :
this.nodes.length + (this.nearestNode == null ? 0 : 1)) ||
3;
this.retryIntervalSeconds = options.retryIntervalSeconds || 0.1;

Expand Down

0 comments on commit 311f99b

Please sign in to comment.