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

docs: deprecate ErrAlreadyServing as never returning #1491

Merged
merged 1 commit into from
Feb 13, 2023
Merged

docs: deprecate ErrAlreadyServing as never returning #1491

merged 1 commit into from
Feb 13, 2023

Conversation

alexandear
Copy link
Contributor

@alexandear alexandear commented Feb 12, 2023

This PR adds // Deprecated: to the ErrAlreadyServing because this error is never returning from the Serve. The behavior changed in #731.

We can't just delete exported error to not break compatibility.

IDE understands this syntax and highlighted appropriately:
image

@alexandear alexandear changed the title docs: Deprecate ErrAlreadyServing as never returning docs: deprecate ErrAlreadyServing as never returning Feb 12, 2023
@erikdubbelboer erikdubbelboer merged commit 9230a3d into valyala:master Feb 13, 2023
@erikdubbelboer
Copy link
Collaborator

Thanks!

  • sorry my phone screen jumped and made me press the close button 😑

@alexandear alexandear deleted the deprecate-err-already-serving branch February 13, 2023 08:20
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