Skip to content

Commit

Permalink
Merge pull request #880 from snyk/chore/rm-mem-leak-warning
Browse files Browse the repository at this point in the history
chore: increase max listeners default
  • Loading branch information
aarlaud authored Nov 12, 2024
2 parents 0468312 + 14133aa commit 510d207
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ process.on('unhandledRejection', (reason: any) => {
});

export const app = async ({ port = 7341, client = false, config }) => {
const events = require('events');
events.EventEmitter.defaultMaxListeners = 30;
try {
// note: the config is loaded in the main function to allow us to mock in tests
if (process.env.JEST_WORKER_ID) {
Expand Down

0 comments on commit 510d207

Please sign in to comment.