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

Convert keyword list so it becomes rabbit_common compatible #206

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mzabka
Copy link

@mzabka mzabka commented Nov 18, 2021

No description provided.

Copy link
Collaborator

@ono ono left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I personally prefer to use the rabbitmq compatible format but I think that we should support Utils.to_type_tuple/1 to keep it consistent.

It looks good for Exchange. Can you remove headers function and use declare directly instead please? Then I will merge this PR and put the same conversion to elsewhere.

Thanks!

@spec headers(Channel.t(), Basic.exchange(), keyword) :: :ok | Basic.error()
def headers(%Channel{} = channel, exchange, options \\ []) do
declare(channel, exchange, :headers, options)
end
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This level of utility should belong to application level. Can you remove this function and simply use Exchange.declare/4 instead?

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.

None yet

2 participants