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

fixup: stream error logging #154

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

cole-h
Copy link
Collaborator

@cole-h cole-h commented Jul 26, 2024

The call to into_inner() discards the wrapper type constructed by map_err(). So instead, map_err() the actual stream, and call Body::from_stream on the wrapped stream.


This was originally fixed in #137, but the update to axum 0.7 in #138 migrated that functionality slightly incorrectly.

The call to `into_inner()` discards the wrapper type constructed by
`map_err()`. So instead, `map_err()` the actual stream, and call
`Body::from_stream` on the wrapped stream.
@cole-h cole-h mentioned this pull request Jul 26, 2024
@zhaofengli
Copy link
Owner

Oops, that was a mistake. Thanks for the fix!

@zhaofengli zhaofengli merged commit e127acb into zhaofengli:main Aug 1, 2024
11 checks passed
@cole-h cole-h deleted the fixup-stream-error-logging branch August 1, 2024 01:10
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