switch report polling to every 30s

This commit is contained in:
jesopo 2022-07-04 13:25:27 +00:00
parent f363ba0607
commit cad92074e5

View File

@ -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;
}