Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cli-repl): drop nanobus in production usage MONGOSH-1330 #1366

Merged
merged 1 commit into from
Dec 2, 2022

Conversation

addaleax
Copy link
Contributor

@addaleax addaleax commented Dec 1, 2022

nanobus inherently leaks memory, which means that it can make mongosh crash in certain scenarios.

Since we do not actually use the features of nanobus (mostly being able to listen for a generic '*' event), just replace it with the standard EventEmitter to fix this.

nanobus inherently leaks memory, which means that it can
make mongosh crash in certain scenarios.

Since we do not actually use the features of nanobus
(mostly being able to listen for a generic `'*'` event),
just replace it with the standard `EventEmitter` to fix this.
Copy link
Member

@Anemy Anemy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find!

@addaleax addaleax merged commit afce071 into main Dec 2, 2022
@addaleax addaleax deleted the 1330-dev branch December 2, 2022 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants