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

Improve error message when client is run when shutdown #2215

Merged
merged 1 commit into from
Mar 27, 2025

Conversation

glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Mar 27, 2025

Motivation:

GRPCClient can throw an error when run is called more than once or if run is called after it has been shutdown. Normally this would happen if a user caller 'run()' more than once, but can also happen if 'withGRPCClient' is called and the client is never used and the body returns quickly.

Modifications:

  • Improve the error message

Result:

Better error message.

Motivation:

GRPCClient can throw an error when run is called more than once or if
run is called after it has been shutdown. Normally this would happen if
a user caller 'run()' more than once, but can also happen if
'withGRPCClient' is called and the client is never used and the body
returns quickly.

Modifications:

- Improve the error message

Result:

Better error message.
@glbrntt glbrntt added the 🔨 semver/patch No public API change. label Mar 27, 2025
@glbrntt glbrntt requested a review from FranzBusch March 27, 2025 16:03
@glbrntt glbrntt linked an issue Mar 27, 2025 that may be closed by this pull request
@glbrntt glbrntt enabled auto-merge (squash) March 27, 2025 16:03
@glbrntt glbrntt merged commit edb1ec6 into grpc:main Mar 27, 2025
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

withClient API can hit precondition
2 participants