-
-
Notifications
You must be signed in to change notification settings - Fork 175
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
Conversation
@@ -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 |
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.
This makes the options.merge(registered: true)
below redundant.
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.
@mensfeld ^ this is my only feedback.
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.
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 |
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.
@mensfeld ^ this is my only feedback.
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.