Skip to content

Commit

Permalink
fix(core): increase max event listener count (#5889)
Browse files Browse the repository at this point in the history
Some users with very large projects occasionally run into a
"maximum event listeners exceeded" warning. It's not quite clear why
this would happen, but maybe this is to be expected for larger projects.

Raising the limit should be harmless, and might help reveal underlying
issues with the event listener lifecycle.
  • Loading branch information
thsig committed Mar 28, 2024
1 parent a4fdc3b commit d29e11e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/events/events.ts
Expand Up @@ -45,7 +45,7 @@ export class EventBus extends EventEmitter2.EventEmitter2 {
super({
wildcard: false,
newListener: false,
maxListeners: 5000, // we may need to adjust this
maxListeners: 50000, // we may need to adjust this
})
this.keyIndex = {}
}
Expand Down

0 comments on commit d29e11e

Please sign in to comment.