From cad92074e5dc18bad660e26ba26b61b57f970bc6 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 4 Jul 2022 13:25:27 +0000 Subject: [PATCH] switch report polling to every 30s --- src/report/ReportPoller.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/report/ReportPoller.ts b/src/report/ReportPoller.ts index a0dbebf..2229b50 100644 --- a/src/report/ReportPoller.ts +++ b/src/report/ReportPoller.ts @@ -52,7 +52,7 @@ export class ReportPoller { */ this.timeout = setTimeout( this.tryGetAbuseReports.bind(this), - 60_000 // a minute in milliseconds + 30_000 // a minute in milliseconds ); } else { throw new InvalidStateError("poll already scheduled"); @@ -88,6 +88,7 @@ export class ReportPoller { `/_synapse/admin/v1/rooms/${report.room_id}/context/${report.event_id}?limit=1` )).event; } catch (ex) { + this.mjolnir.logMessage(LogLevel.ERROR, "getAbuseReports", `failed to get context: ${ex}`); continue; }