-
Notifications
You must be signed in to change notification settings - Fork 6
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
Feature/async refactor #30
Feature/async refactor #30
Conversation
Looks like #29 was extracted from this PR with some further changes. This needs a rebase. (I'm assuming that it's too early to evaluate this PR further since it is currently a draft) |
ba9ccc4
to
8f8813e
Compare
@michaelklishin well, I've done with the PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like where this is headed. We need to correct one error message before this can be merged, though, as it is overly specific.
ClientErrorResponse(StatusCode, Respone), | ||
#[error("API responded with a server error: status code of {0}")] | ||
ServerErrorResponse(StatusCode, Respone), | ||
#[error("Health check failed: resource alarms are in effect")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not all health checks are related to resource alarms but IIRC all of them use the same HTTP status code for failures. So this message must be shortened but the enum value makes sense.
HealthCheckFailed(responses::HealthCheckFailureDetails), | ||
#[error("Could not find the requested resource")] | ||
NotFound(), | ||
#[error("Can't delete a binding: multiple matching bindings found")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've been contributing to RabbitMQ and/or clients libraries since 2010 and I have never seen this error. But it makes some sense, the only way to differentiate between multiple bindings between a source exchange and its destination is via their properties and they were not provided, returning an error is an option.
I figured I might as well update the messages myself. |
This is a continuation to #29.
Closes #27.