Mark messages as failed when running out of time

Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
automated-signal 2022-05-18 16:43:19 -07:00 committed by GitHub
parent 7cb97843f6
commit e861118565
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -91,7 +91,9 @@ export async function sendNormalMessage(
if (!shouldContinue) {
log.info(`message ${messageId} ran out of time. Giving up on sending it`);
await markMessageFailed(message, messageSendErrors);
await markMessageFailed(message, [
new Error('Message send ran out of time'),
]);
return;
}