-
Notifications
You must be signed in to change notification settings - Fork 0
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
Callback mode #3
base: master
Are you sure you want to change the base?
Conversation
lib/fluent/plugin/in_amqp.rb
Outdated
cb = Proc.new do | success | | ||
@ack_queue.push([delivery.delivery_tag, success]) | ||
end | ||
payload = { :payload => payload, :callback => cb } |
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.
confused where the callback is used
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.
over here: https://github.com/chronicled/fluent-plugin-output-graphql/pull/18
Since we are in the same process should be safe to pass a block (callback) around
obviously this is very implementation specific I would not put this code upstream
an additional benefit of this callback mode is it will give us NACKS when HTTP requests fail to hasura. |
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.
The code looks ok, but my ruby knowledge is very limited. Maybe Matt can give the final review and approval.
No description provided.