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

splitted responsibilities #464

Merged
merged 9 commits into from
Jan 29, 2019
Merged

splitted responsibilities #464

merged 9 commits into from
Jan 29, 2019

Conversation

mensfeld
Copy link
Member

close #463

cc: @benissimo

note: does not provide way to overwrite the default serializer in the responder as this will be provided in a different PR.

@mensfeld mensfeld added the enhancement New features, updated functionalities and improvements label Jan 28, 2019
@mensfeld mensfeld self-assigned this Jan 28, 2019
@mensfeld mensfeld requested a review from nijikon January 28, 2019 15:34
@@ -82,16 +82,18 @@ class << self
# @param topic_name [Symbol, String] name of topic to which we want to respond
# @param options [Hash] hash with optional configuration details
def topic(topic_name, options = {})
options[:serializer] ||= Karafka::App.config.serializer
options[:registered] = true

Choose a reason for hiding this comment

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

This makes the options.merge(registered: true) below redundant.

Choose a reason for hiding this comment

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

@mensfeld ^ this is my only feedback.

Copy link
Member Author

Choose a reason for hiding this comment

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

True! Thanks!

@@ -82,16 +82,18 @@ class << self
# @param topic_name [Symbol, String] name of topic to which we want to respond
# @param options [Hash] hash with optional configuration details
def topic(topic_name, options = {})
options[:serializer] ||= Karafka::App.config.serializer
options[:registered] = true

Choose a reason for hiding this comment

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

@mensfeld ^ this is my only feedback.

@mensfeld mensfeld merged commit 43f37d8 into 1.3-wip Jan 29, 2019
@mensfeld mensfeld deleted the issue-463 branch January 29, 2019 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New features, updated functionalities and improvements
Development

Successfully merging this pull request may close these issues.

3 participants