You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please use mailing list for questions in the future.
Your problem is that you open a connection in top level namespace code. Any potentially blocking operation will block the compiler.
You want to use Component or a similar library that makes it easier to initialise dependencies and store them in application-wide state without using top level namespace code.
Also Component will make it easy to reset system state, e.g. between tests, while with connections stored in vars all your options (alter-var-root and such) are hacky and introduce mutable shared state.
Hello.
I had a problem when I upgraded my langohr dependency from 3.7.0 to 4.0.0. I can't run
lein uberjar
anymore because it hangs up.To fix it I moved my connection inside the
publish
function. But I think that it's a bad solution to create and close so much TCP connections.My
project.clj
The text was updated successfully, but these errors were encountered: