nestjs-resilience
Version:
A module for improving the reliability and fault-tolerance of your NestJS applications
15 lines (14 loc) • 421 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.FixedBackoff = void 0;
const base_backoff_1 = require("./base.backoff");
class FixedBackoff extends base_backoff_1.Backoff {
*getGenerator(maxRetries) {
let attempt = 1;
while (attempt < maxRetries) {
yield this.baseDelay;
attempt += 1;
}
}
}
exports.FixedBackoff = FixedBackoff;
;