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

Forward error to waiter before sinking #153

Merged
merged 1 commit into from
May 26, 2023
Merged

Conversation

couchand
Copy link
Contributor

This ensures that an active waiter will be notified of a connection failure before we resort to sending it to the sink.

Contributes to #141.

This ensures that an active waiter will be notified of a
connection failure before we resort to sending it to the sink.

Contributes to djc#141.
@couchand
Copy link
Contributor Author

I would observe that, although I think this generally makes sense, since it doesn't fully fix #141 and dealing with the Result channel is a bit awkward in places I'm not 100% sold on this PR as-is. Happy to hear any feedback.

@codecov
Copy link

codecov bot commented Mar 21, 2023

Codecov Report

Patch coverage: 82.35% and project coverage change: +0.67 🎉

Comparison is base (03f95c9) 74.28% compared to head (c9be82c) 74.95%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #153      +/-   ##
==========================================
+ Coverage   74.28%   74.95%   +0.67%     
==========================================
  Files           6        6              
  Lines         556      567      +11     
==========================================
+ Hits          413      425      +12     
+ Misses        143      142       -1     
Impacted Files Coverage Δ
bb8/src/internals.rs 93.24% <76.92%> (-1.69%) ⬇️
bb8/src/inner.rs 86.31% <100.00%> (+0.07%) ⬆️

... and 1 file with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@djc djc merged commit 935b887 into djc:main May 26, 2023
@djc
Copy link
Owner

djc commented May 26, 2023

This seems like a reasonable improvement to me. 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.

None yet

2 participants