fixes for local dev
This commit is contained in:
1 parent
c3a5309726
commit
99ccd8a1bd
5 files changed
+36
-44
No files matched your search
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user