File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change 1010
1111import { Cli } from "matrix-appservice-bridge" ;
1212import { MjolnirAppService } from "./AppService" ;
13- import { Task } from "matrix-protection-suite" ;
1413import { AppserviceConfig } from "./config/config" ;
1514import { Value } from "@sinclair/typebox/value" ;
1615
@@ -32,16 +31,12 @@ const cli = new Cli({
3231 if ( config === null ) {
3332 throw new Error ( "Couldn't load config" ) ;
3433 }
35- void Task (
36- ( async ( ) => {
37- await MjolnirAppService . run (
38- port ,
39- // we use the matrix-appservice-bridge library to handle cli arguments for loading the config
40- // but we have to still validate it ourselves.
41- Value . Decode ( AppserviceConfig , config ) ,
42- cli . getRegistrationFilePath ( )
43- ) ;
44- } ) ( )
34+ void MjolnirAppService . run (
35+ port ,
36+ // we use the matrix-appservice-bridge library to handle cli arguments for loading the config
37+ // but we have to still validate it ourselves.
38+ Value . Decode ( AppserviceConfig , config ) ,
39+ cli . getRegistrationFilePath ( )
4540 ) ;
4641 } ,
4742} ) ;
You can’t perform that action at this time.
0 commit comments