Skip to content

Conversation

@GuyPago
Copy link
Contributor

@GuyPago GuyPago commented Mar 15, 2025

Calling BuildServiceProvider() creates the set of services which need to be injected (the DI container). As builder.build() also calls it internally, it leads to 2 of each singletons, and different scoped services that can mess with each other. Along with extra memory usage and possible memory leaks.

@aghayeffemin
Copy link
Owner

Nice find! Thanks for cleaning this up and preventing the duplicate service provider. Merging.

@aghayeffemin aghayeffemin merged commit 5a6a19c into aghayeffemin:master Sep 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants