vjudge: do not load in cli mode

This commit is contained in:
undefined committed 2022-12-07 23:53:16 +08:00
1 parent 76f79adb42
commit 8b26e09fb2
1 file changed
+1
+1
View File
@@ -172,6 +172,7 @@ Context.service('vjudge', VJudgeService);
export const name = 'vjudge';
export async function apply(ctx: Context) {
if (process.env.NODE_APP_INSTANCE !== '0') return;
if (process.env.HYDRO_CLI) return;
const vjudge = new VJudgeService(ctx);
await vjudge.start();
for (const [k, v] of Object.entries(providers)) {