Extract const

This commit is contained in:
Andras Schmelczer 2025-12-13 12:03:35 +00:00
parent 079cd26faa
commit 8aba8ee44a

View file

@ -35,6 +35,8 @@ const LOG_LEVEL_ORDER = {
[LogLevel.ERROR]: 3 [LogLevel.ERROR]: 3
}; };
const HEALTH_CHECK_INTERVAL_MS = 30 * 1000;
async function main(): Promise<void> { async function main(): Promise<void> {
const args = parseArgs(process.argv); const args = parseArgs(process.argv);
const absolutePath = path.resolve(args.localPath); const absolutePath = path.resolve(args.localPath);
@ -147,7 +149,7 @@ async function main(): Promise<void> {
void client.checkConnection().then((status) => { void client.checkConnection().then((status) => {
writeHealthStatus(healthFile, status); writeHealthStatus(healthFile, status);
}); });
}, 30 * 1000); // every 30 seconds }, HEALTH_CHECK_INTERVAL_MS);
const clearHealthInterval = (): void => { const clearHealthInterval = (): void => {
clearInterval(healthInterval); clearInterval(healthInterval);
}; };