fixes for local dev

This commit is contained in:
Nathan Rashleigh committed 2024-06-30 23:06:35 +10:00
1 parent c3a5309726
commit 99ccd8a1bd
5 files changed
+36 -44

No files matched your search

+2 -2
View File
@@ -192,12 +192,12 @@ export default async function discordScraper(
newCount++
}
log.info({ oldCount, newCount }, 'processed attachments')
log.debug({ oldCount, newCount }, 'processed attachments')
const shouldWait = newCount === 0 && oldCount === 0
const PROCESS_DELAY_MS = 1000 * 60 // 1 minute
if (shouldWait) {
log.info({ PROCESS_DELAY_MS }, 'waiting for new messages')
log.debug({ PROCESS_DELAY_MS }, 'waiting for new messages')
await setTimeout(PROCESS_DELAY_MS)
}