From 74e980b2e099aecf9ceeb9718b94c100d3cee4e6 Mon Sep 17 00:00:00 2001 From: besoeasy Date: Thu, 1 Jan 2026 09:34:03 +0530 Subject: [PATCH] feat: initialize Nostr job on server start and log configuration details --- app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app.js b/app.js index 2d90482..201f68a 100644 --- a/app.js +++ b/app.js @@ -71,6 +71,7 @@ const server = app.listen(PORT, HOST, () => { let nostrTimers = { discovery: null, pinner: null }; if (NPUB) { + runNostrJob(NPUB); // Initial run nostrTimers.discovery = setInterval(() => runNostrJob(NPUB), NOSTR_CHECK_INTERVAL_MS); nostrTimers.pinner = setInterval(pinnerJob, PINNER_INTERVAL_MS); console.log(`[STARTUP] NOSTR_ENABLED npub=${NPUB} discovery_interval_ms=${NOSTR_CHECK_INTERVAL_MS} pinner_interval_ms=${PINNER_INTERVAL_MS}`);