-
Notifications
You must be signed in to change notification settings - Fork 57
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
Only open the admin connection when we need to use it #71
Conversation
b49e3c0
to
aed0b80
Compare
Looks good On Sunday, January 11, 2015, Andreas Öhlund notifications@github.com
|
The issue is that we're now mixing the responsibility for disposing the On Sun, Jan 11, 2015 at 12:30 AM, John Simons notifications@github.com
|
@johnsimons @SimonCropp while I think the fix is good (no need to keep the admin channel open) I have a bad feeling about the RabbitMqConnectionManager class. It seems wrong that some calls returns a connection that is managed by the connection manager (publish + consume) and one (admin) that is supposed to be managed by the caller. Do U have any idea on how to clean this up? |
@andreasohlund how about making the API more explicit?
|
Yes that is better. Since it would be a breaking change I'll raise a new On Fri, Feb 6, 2015 at 6:09 AM, John Simons notifications@github.com
|
Only open the admin connection when we need to use it
Endpoints keeps the admin connection (to perform sub/unsubscribe) open. This is wasteful since all subscribes usually happens on start up.