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

Ensure we are running on EventLoop after HBAsyncMiddleware #357

Merged
merged 1 commit into from
Jan 24, 2024

Conversation

adam-fowler
Copy link
Member

The next responder was being running in the same task as the async middleware, which could cause problems for routes and middleware after which assume we are still running on the EventLoop

This PR adds flatSubmits to ensure we are running on the correctly EventLoop

@adam-fowler adam-fowler requested a review from Joannis January 24, 2024 08:26
Copy link

codecov bot commented Jan 24, 2024

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (02ab651) 84.64% compared to head (ec01055) 84.59%.

Files Patch % Lines
...ummingbird/AsyncAwaitSupport/AsyncMiddleware.swift 50.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #357      +/-   ##
==========================================
- Coverage   84.64%   84.59%   -0.05%     
==========================================
  Files          79       79              
  Lines        4845     4849       +4     
==========================================
+ Hits         4101     4102       +1     
- Misses        744      747       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@Joannis Joannis left a comment

Choose a reason for hiding this comment

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

Good catch, that's a hard one to spot

@adam-fowler
Copy link
Member Author

Good catch, that's a hard one to spot

Came from #356. So glad to not have to deal with EventLoops anymore

@adam-fowler adam-fowler merged commit 7f7dbef into main Jan 24, 2024
9 of 11 checks passed
@adam-fowler adam-fowler deleted the after-async-middleware branch January 24, 2024 13:19
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.

2 participants