We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8a8d5d commit a59eca4Copy full SHA for a59eca4
lib/imap-notifier.js
@@ -16,7 +16,7 @@ const USER_WORKERS_PREFIX = 'wd:imap:users:';
16
const USER_WORKERS_TTL = Math.max(Number(config?.imap?.notifyUserWorkersTtl) || 120, 30);
17
const USER_WORKERS_REFRESH = Math.max(Number(config?.imap?.notifyUserWorkersRefresh) || Math.floor(USER_WORKERS_TTL / 4), 10);
18
const USER_WORKERS_TTL_MS = USER_WORKERS_TTL * 1000 - 1000; // allow for 1 sec window just in case
19
-const WORKER_ID = (config?.dbs?.workerId || `${os.hostname()}:${process.pid}`).toString();
+const WORKER_ID = `${config?.dbs?.workerId || os.hostname()}:${process.pid}`;
20
const USER_REGISTRY_STATE = {
21
counts: new Map(),
22
workerId: WORKER_ID,
0 commit comments