-
Notifications
You must be signed in to change notification settings - Fork 41
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
check API version #641
check API version #641
Conversation
53d2936
to
dd0fb88
Compare
.with(warp::reply::with::headers(headers)) | ||
} | ||
|
||
/// API Version verification |
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.
change the comment according to what the function does
.untuple_one() | ||
} | ||
|
||
pub async fn handle_custom(reject: Rejection) -> Result<impl Reply, Rejection> { |
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.
handle custom rejection codes
.untuple_one() | ||
} | ||
|
||
pub async fn handle_custom(reject: Rejection) -> Result<impl Reply, Rejection> { |
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 need to be public
Catch the HTTP error in the signer and the client to display an according error message. |
3984a08
to
12ff761
Compare
eab2576
to
b1504ae
Compare
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.
LGTM 👍
Content
This PR adds an API version check when requesting the Aggregator. If the API version does not match, the HTTP call is rejected.
Pre-submit checklist
Comments
None
Issue(s)
Closes #633