UNPKG

@mittwald/kubernetes

Version:

Kubernetes client library

18 lines 596 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DefaultListWatchErrorStrategy = void 0; // eslint-disable-next-line @typescript-eslint/naming-convention const DefaultListWatchErrorStrategy = (err, errCount) => { if (err.code === "ECONNRESET") { return { resync: false, backoff: 100 * (Math.min(errCount, 10) - 1), }; } return { resync: true, backoff: 10000, }; }; exports.DefaultListWatchErrorStrategy = DefaultListWatchErrorStrategy; //# sourceMappingURL=resource_listwatch_error.js.map