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

api.core gets executed N times on first compile and load #27

Open
burn2delete opened this issue Dec 27, 2017 · 0 comments
Open

api.core gets executed N times on first compile and load #27

burn2delete opened this issue Dec 27, 2017 · 0 comments

Comments

@burn2delete
Copy link
Member

burn2delete commented Dec 27, 2017

Original Issue:
hoplon/hoplon#120

Issue Comment:
hoplon/hoplon#120 (comment)

So my colleague appears to have found the issue.

wrap-castra "requires" the api on runtime, but if the environment is multithreaded, the call to api happens as many times as there are threads. The workaround he found was to just require it in the ns declaration so that it happens predictably on initialization.

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

No branches or pull requests

1 participant