Skip to content
This repository was archived by the owner on Jan 2, 2025. It is now read-only.

Conversation

calyptobai
Copy link
Contributor

@calyptobai calyptobai commented Feb 6, 2023

This allows us to use simple Result<impl IntoResponse> for webserver handler return types, and use plain ?-based error handling, which correctly propagates HTTP status codes.

@rsdy rsdy changed the base branch from main to openai-streaming February 6, 2023 13:03
@rsdy rsdy changed the base branch from openai-streaming to main February 6, 2023 13:03
@calyptobai calyptobai force-pushed the error-refactor branch 2 times, most recently from 432b474 to 4ad01fb Compare February 14, 2023 00:01
@calyptobai calyptobai marked this pull request as ready for review February 14, 2023 00:03
Copy link
Contributor

@rsdy rsdy left a comment

Choose a reason for hiding this comment

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

This looks pretty good. Major improvements everywhere.

@ggordonhall ggordonhall requested a review from llogiq February 14, 2023 11:31
This allows us to use simple `Result<impl IntoResponse>` for webserver
handler return types, and use plain `?`-based error handling.
@calyptobai calyptobai merged commit f7ae262 into main Feb 14, 2023
@calyptobai calyptobai deleted the error-refactor branch February 14, 2023 23:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants