default options ping interval to 30s, with env override if desired

This commit is contained in:
Dave Horton
2021-12-14 12:28:02 -05:00
parent f642967f02
commit afbbed3f5c

View File

@@ -95,7 +95,7 @@ module.exports = (logger) => {
setInterval(() => {
const {srf} = require('../..');
pingProxies(srf);
}, 20000);
}, process.env.OPTIONS_PING_INTERVAL || 30000);
// initial ping once we are up
setTimeout(async() => {