mirror of
https://github.com/the-draupnir-project/Draupnir.git
synced 2026-09-16 23:54:19 +00:00
Forgot to start Draupnir listening in appservice.
We need to look at Draupnir's .start method and make it `void`. The report poller should just throw if it fails without being caught by `Task`. We also need to test the `toggle` in appservice in integration tests.
This commit is contained in:
@@ -8,7 +8,12 @@
|
||||
// https://github.com/matrix-org/mjolnir
|
||||
// </text>
|
||||
|
||||
import { ActionError, ActionResult, isError } from "matrix-protection-suite";
|
||||
import {
|
||||
ActionError,
|
||||
ActionResult,
|
||||
Task,
|
||||
isError,
|
||||
} from "matrix-protection-suite";
|
||||
import { IConfig } from "../config";
|
||||
import { DraupnirFactory } from "./DraupnirFactory";
|
||||
import { Draupnir } from "../Draupnir";
|
||||
@@ -83,6 +88,7 @@ export class StandardDraupnirManager {
|
||||
}
|
||||
this.draupnir.set(clientUserID, draupnir.ok);
|
||||
this.failedDraupnir.delete(clientUserID);
|
||||
void Task(draupnir.ok.start());
|
||||
return draupnir;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user