mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
fix
This commit is contained in:
7 files changed
+14
-7
No files matched your search
@@ -11,7 +11,7 @@ export async function compilerVersions(langs: Record<string, LangConfig>) {
|
||||
copyIn: {},
|
||||
time: 10000,
|
||||
memory: 256,
|
||||
}, 'compilerVersions', 5);
|
||||
}, `compilerVersions<${lang}>`, 5);
|
||||
result[lang] = `${res.stdout}\n${res.stderr}`.trim();
|
||||
}
|
||||
return result;
|
||||
|
||||
@@ -20,7 +20,7 @@ declare global {
|
||||
|
||||
class I18nService extends Service {
|
||||
constructor(ctx: Context) {
|
||||
super(ctx, 'i18n', true);
|
||||
super(ctx, 'i18n');
|
||||
}
|
||||
|
||||
load(lang: string, content: Record<string, string>) {
|
||||
|
||||
@@ -121,7 +121,7 @@ export function registerUnion(...args: any[]) {
|
||||
// TODO support dispose
|
||||
class ApiService extends Service {
|
||||
constructor(ctx: Context) {
|
||||
super(ctx, 'api', true);
|
||||
super(ctx, 'api');
|
||||
this.rebuild = debounce(this.rebuild.bind(this), 500, { trailing: true });
|
||||
ctx.on('ready', this.rebuild);
|
||||
}
|
||||
|
||||
@@ -128,7 +128,6 @@ export function apply(ctx: Context) {
|
||||
|
||||
export default app;
|
||||
export const on = (a, b, c?) => app.on(a, b, c);
|
||||
export const off = (a, b) => app.off(a, b);
|
||||
export const once = (a, b, c?) => app.once(a, b, c);
|
||||
export const parallel = app.parallel.bind(app);
|
||||
export const emit = app.parallel.bind(app);
|
||||
|
||||
@@ -39,7 +39,7 @@ export class CheckService extends Service {
|
||||
}
|
||||
}
|
||||
|
||||
export const check = new CheckService(app, 'check', true);
|
||||
export const check = new CheckService(app, 'check');
|
||||
|
||||
check.addChecker('Db', async (ctx, log, warn, error) => {
|
||||
try {
|
||||
|
||||
@@ -17,7 +17,7 @@ export default class MigrationService extends Service {
|
||||
private called = false;
|
||||
|
||||
constructor(ctx: Context) {
|
||||
super(ctx, 'migration', true);
|
||||
super(ctx, 'migration');
|
||||
}
|
||||
|
||||
async registerChannel(name: string, s: MigrationScript[]) {
|
||||
|
||||
Reference in new issue
Block a user