-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Healthz endpoints for Driver and Solvers (#2060)
# Description Adds liveness endpoints for `driver` and `solvers` crates. # Changes 2 new GET endpoints always returning `200OK` ## How to test Will be tested in scope of the cowprotocol/infrastructure#858 deployment ## Related Issues Fixes #1382
- Loading branch information
1 parent
b5a258a
commit e3b558b
Showing
6 changed files
with
21 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
use axum::{http::StatusCode, response::IntoResponse, routing::get}; | ||
|
||
pub(in crate::infra::api) fn healthz(app: axum::Router<()>) -> axum::Router<()> { | ||
app.route("/healthz", get(route)) | ||
} | ||
|
||
async fn route() -> impl IntoResponse { | ||
StatusCode::OK | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
use axum::{http::StatusCode, response::IntoResponse}; | ||
|
||
pub async fn healthz() -> impl IntoResponse { | ||
StatusCode::OK | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters