fix: increase store max event listeners to 100 (SSE + watcher + engine)
This commit is contained in:
@@ -37,6 +37,7 @@ export class TaskStore extends EventEmitter<TaskStoreEvents> {
|
|||||||
|
|
||||||
constructor(private rootDir: string) {
|
constructor(private rootDir: string) {
|
||||||
super();
|
super();
|
||||||
|
this.setMaxListeners(100);
|
||||||
this.kbDir = join(rootDir, ".kb");
|
this.kbDir = join(rootDir, ".kb");
|
||||||
this.tasksDir = join(this.kbDir, "tasks");
|
this.tasksDir = join(this.kbDir, "tasks");
|
||||||
this.configPath = join(this.kbDir, "config.json");
|
this.configPath = join(this.kbDir, "config.json");
|
||||||
|
|||||||
Reference in New Issue
Block a user