Skip to content

Commit

Permalink
new dist
Browse files Browse the repository at this point in the history
  • Loading branch information
massimocandela committed Feb 12, 2024
1 parent 11b09f9 commit 726d84e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions dist/src/monitors/monitorROAS.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,14 @@ var MonitorROAS = exports["default"] = /*#__PURE__*/function (_Monitor) {
_this = _callSuper(this, MonitorROAS, [name, channel, params, env, input]);
_defineProperty(_assertThisInitialized(_this), "_enablePeriodicCheck", function (condition, checkFunction, seconds) {
if (condition) {
if (!global.EXTERNAL_ROA_EXPIRATION_TEST) {
setTimeout(function () {
return _this._skipIfStaleVrps(checkFunction);
}, 30 * 1000); // Initial run
}
setInterval(function () {
_this._skipIfStaleVrps(checkFunction);
}, global.EXTERNAL_ROA_EXPIRATION_TEST || seconds * 1000);
return _this._skipIfStaleVrps(checkFunction);
}, global.EXTERNAL_ROA_EXPIRATION_TEST || seconds * 1000); // Periodic run
}
});
_defineProperty(_assertThisInitialized(_this), "_skipIfStaleVrps", function (callback) {
Expand Down

0 comments on commit 726d84e

Please sign in to comment.