-
Notifications
You must be signed in to change notification settings - Fork 46
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
Declare passive #25
base: master
Are you sure you want to change the base?
Declare passive #25
Conversation
* Update declarer interface with new passive methods * Add DeclareQueuePassive * Add DeclareExchangePassive * Add tests for new methods
@steviebiddles I would rather not change existing interface. But instead added new functions in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It needs to not break existing interfaces
@steviebiddles BTW, are you aware of this streadway/amqp#242 ? |
Thanks for the update. I was not aware of that but if that is the way the protocol works it should be ok to make the changes. |
@steviebiddles yeah, just don't change exiting interface as I've pointed out previously. |
I am new to Go and I have been trying to implement the
When I debug and step over I see that Is this the change you recommended? |
@steviebiddles you need to design your DeclarerPassive interface with two methods https://godoc.org/github.com/streadway/amqp#Channel.ExchangeDeclarePassive and https://godoc.org/github.com/streadway/amqp#Channel.QueueDeclarePassive |
* Add separate interface for passive methods * Refactor passive methods and type assert to ensure they are similar types
I added the interface and refactored the passive methods. The tests are passing without any changes to them. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these changes what you expected?
Allow users to test for the existence of a queue.