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: memory leak in DataStore #950

Merged
merged 2 commits into from
Oct 30, 2024
Merged

fix: memory leak in DataStore #950

merged 2 commits into from
Oct 30, 2024

Conversation

EvanHahn
Copy link
Contributor

We have a set of promises waiting to be indexed, and we never removed these promises from the set. This fixes that memory leak.

We have a set of promises waiting to be indexed, and we never removed
these promises from the set. This fixes that memory leak.
Copy link
Member

@gmaclennan gmaclennan left a comment

Choose a reason for hiding this comment

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

good catch!

nit: I feel like this belongs on line 169, close to where it's added to the Map, after we have used it. But also fine here.

@EvanHahn
Copy link
Contributor Author

Moved in af184f2. I'll land if CI passes.

@EvanHahn EvanHahn merged commit 4a7bf54 into main Oct 30, 2024
8 checks passed
@EvanHahn EvanHahn deleted the fix-datastore-memory-leak branch October 30, 2024 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants