Skip to content

Commit a59eca4

Browse files
committed
workerId still has to have a pid attached
1 parent d8a8d5d commit a59eca4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/imap-notifier.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const USER_WORKERS_PREFIX = 'wd:imap:users:';
1616
const USER_WORKERS_TTL = Math.max(Number(config?.imap?.notifyUserWorkersTtl) || 120, 30);
1717
const USER_WORKERS_REFRESH = Math.max(Number(config?.imap?.notifyUserWorkersRefresh) || Math.floor(USER_WORKERS_TTL / 4), 10);
1818
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();
19+
const WORKER_ID = `${config?.dbs?.workerId || os.hostname()}:${process.pid}`;
2020
const USER_REGISTRY_STATE = {
2121
counts: new Map(),
2222
workerId: WORKER_ID,

0 commit comments

Comments
 (0)