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

Panic if there are no hosts #15

Open
JensRantil opened this issue Dec 10, 2020 · 0 comments
Open

Panic if there are no hosts #15

JensRantil opened this issue Dec 10, 2020 · 0 comments

Comments

@JensRantil
Copy link
Contributor

A common scenario is that there are no downstream services available. In that case this library will panic (referencing first item in an empty list). I'd expect to get an error of some kind from the HostPool.Get() call. Unfortunately this would change the public API and not be a backwards compatible change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant