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

Fix middleware chain execution #2

Merged
merged 3 commits into from
Nov 9, 2020

Conversation

dreikanter
Copy link
Contributor

@dreikanter dreikanter commented Nov 6, 2020

The lacking yield caused middleware chain execution to break after Yabeda::HttpRequests. This patch executes next Sniffer middleware if there is one.

See /~https://github.com/aderyabin/sniffer/blob/d52f2631c1622fe22aa960a757bdae400fdd74b1/lib/sniffer/middleware/chain.rb#L60-L70

I had to fix some non-related Rubocop offenses to make the build pass.

@dreikanter
Copy link
Contributor Author

dreikanter commented Nov 6, 2020

@dsalahutdinov Посмотри, плз. Наткнулся на этот баг, пока делал логирование для всех взаимодействий с внешними API (/~https://github.com/evilmartians/amplifr/pull/6798).

Copy link
Member

@dsalahutdinov dsalahutdinov left a comment

Choose a reason for hiding this comment

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

👍

@dsalahutdinov dsalahutdinov merged commit 1cd069a into yabeda-rb:master Nov 9, 2020
@Envek
Copy link
Member

Envek commented Jan 25, 2021

Released in 0.2.0, thanks!

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.

3 participants