Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

Commit 46ac2f9

Browse files
authored
Merge pull request #20 from nuomiaa/master
修正 拼写错误
2 parents e9714ba + 9d2c3a8 commit 46ac2f9

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

src/entity/commands/dispatcher.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ import GeneralUpdateCommand from "./general/general_update";
3939

4040
// 实例功能调度器
4141
// 根据不同的类型调度分配不同的功能
42-
export default class FuntionDispatcher extends InstanceCommand {
42+
export default class FunctionDispatcher extends InstanceCommand {
4343
constructor() {
44-
super("FuntionDispatcher");
44+
super("FunctionDispatcher");
4545
}
4646

4747
async exec(instance: Instance) {

src/entity/commands/start.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import fs from "fs-extra";
2525

2626
import InstanceCommand from "./base/command";
2727
import * as childProcess from "child_process";
28-
import FuntionDispatcher from "./dispatcher";
28+
import FunctionDispatcher from "./dispatcher";
2929

3030
class StartupError extends Error {
3131
constructor(msg: string) {

src/entity/instance/instance.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import InstanceConfig from "./Instance_config";
2828
import StorageSubsystem from "../../common/system_storage";
2929
import { LifeCycleTaskManager } from "./life_cycle";
3030
import { PresetCommandManager } from "./preset";
31-
import FuntionDispatcher from "../commands/dispatcher";
31+
import FunctionDispatcher from "../commands/dispatcher";
3232
import { IInstanceProcess } from "./interface";
3333
import StartCommand from "../commands/start";
3434
import { configureEntityParams } from "../../common/typecheck";
@@ -112,13 +112,13 @@ export default class Instance extends EventEmitter {
112112
if (cfg.type && cfg.type != this.config.type) {
113113
if (this.status() != Instance.STATUS_STOP) throw new Error("正在运行时无法修改此实例类型");
114114
configureEntityParams(this.config, cfg, "type", String);
115-
this.forceExec(new FuntionDispatcher());
115+
this.forceExec(new FunctionDispatcher());
116116
}
117117
// 若进程类型改变,则必须重置预设命令与生命周期事件
118118
if (cfg.processType && cfg.processType !== this.config.processType) {
119119
if (this.status() != Instance.STATUS_STOP) throw new Error("正在运行时无法修改此实例进程类型");
120120
configureEntityParams(this.config, cfg, "processType", String);
121-
this.forceExec(new FuntionDispatcher());
121+
this.forceExec(new FunctionDispatcher());
122122
}
123123
configureEntityParams(this.config, cfg, "nickname", String);
124124
configureEntityParams(this.config, cfg, "startCommand", String);

src/service/system_instance.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import StorageSubsystem from "../common/system_storage";
3434
import InstanceConfig from "../entity/instance/Instance_config";
3535
import InstanceStreamListener from "../common/instance_stream";
3636
import { QueryMapWrapper } from "../common/query_wrapper";
37-
import FuntionDispatcher from "../entity/commands/dispatcher";
37+
import FunctionDispatcher from "../entity/commands/dispatcher";
3838
import InstanceControl from "./system_instance_control";
3939
import StartCommand from "../entity/commands/start";
4040

@@ -77,7 +77,7 @@ class InstanceSubsystem extends EventEmitter {
7777
const instance = new Instance(uuid, instanceConfig);
7878
// 所有实例全部进行功能调度器
7979
instance
80-
.forceExec(new FuntionDispatcher())
80+
.forceExec(new FunctionDispatcher())
8181
.then((v) => {})
8282
.catch((v) => {});
8383
this.addInstance(instance);
@@ -102,7 +102,7 @@ class InstanceSubsystem extends EventEmitter {
102102
}
103103
// 根据参数构建并初始化类型
104104
instance.parameters(cfg);
105-
instance.forceExec(new FuntionDispatcher());
105+
instance.forceExec(new FunctionDispatcher());
106106
this.addInstance(instance);
107107
return instance;
108108
}

0 commit comments

Comments
 (0)