lint src files

This commit is contained in:
2022-12-12 14:58:54 -06:00
parent b754eece0d
commit 8df019aee4
4 changed files with 11 additions and 11 deletions
+3 -3
View File
@@ -10,7 +10,7 @@ const allPlugins = {};
module.exports.all = allPlugins;
module.exports.init = function init(callback) {
let pluginDirectoryPath = path.normalize(path.join(__dirname, `../plugins`));
const pluginDirectoryPath = path.normalize(path.join(__dirname, `../plugins`));
console.log(`Loading plugin files... ${pluginDirectoryPath}`);
@@ -48,13 +48,13 @@ module.exports.init = function init(callback) {
)
);
//if (p.heartbeatTimeout === undefined || p.heartbeatTimeout < 50) {
// if (p.heartbeatTimeout === undefined || p.heartbeatTimeout < 50) {
if (p.config.heartbeatTimeout) {
p.heartbeatTimeout = p.config.heartbeatInterval * 1.5;
} else {
p.heartbeatTimeout = 10000;
}
//}
// }
if (p.config.heartbeatInterval) {
p.heartbeatInterval = Math.max(50, p.config.heartbeatInterval);