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

Allow passing in the seed brokers in a positional argument #538

Merged
merged 3 commits into from
Feb 5, 2018

Conversation

dasch
Copy link
Collaborator

@dasch dasch commented Jan 26, 2018

This is a required argument, and it's pretty central to the concept, so passing it as a positional argument makes sense.

This is a required argument, and it's pretty central to the concept, so
passing it as a positional argument makes sense.
@dasch dasch merged commit 0896f42 into master Feb 5, 2018
@dasch dasch deleted the dasch/allow-positional-seed-brokers branch February 5, 2018 14:55
if seed_brokers.nil?
Client.new(**options)
else
Client.new(seed_brokers: seed_brokers, **options)
Copy link
Contributor

Choose a reason for hiding this comment

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

question for the future: will both of them be supported or will the non positional be deprecated?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

In the future, major release, the non-positional one will probably be deprecated and removed. I'll give it at least 6-9 months first, though.

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