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

Don't use async_stream proc macro #194

Merged
merged 1 commit into from Mar 8, 2024
Merged

Don't use async_stream proc macro #194

merged 1 commit into from Mar 8, 2024

Conversation

poszu
Copy link
Collaborator

@poszu poszu commented Mar 8, 2024

No description provided.

Copy link

codecov bot commented Mar 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.77%. Comparing base (f23433f) to head (e0a66c3).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #194      +/-   ##
==========================================
- Coverage   93.77%   93.77%   -0.01%     
==========================================
  Files          26       26              
  Lines        3344     3341       -3     
==========================================
- Hits         3136     3133       -3     
  Misses        208      208              

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

@poszu poszu marked this pull request as ready for review March 8, 2024 11:33
let (tx, rx) = mpsc::channel::<ServiceResponse>(1);
let response = client
.register(Request::new(ReceiverStream::from(rx)))
.await?;
Copy link
Contributor

Choose a reason for hiding this comment

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

what was the problem?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

There was no "problem", the ReceiverStream does the same as the removed code. It's just cleaner without the proc macro.

@poszu poszu merged commit e28f1c9 into main Mar 8, 2024
19 checks passed
@poszu poszu deleted the dont-use-async_streams branch March 8, 2024 11:52
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.

None yet

2 participants