mirror of
https://github.com/pcvolkmer/checkbar.git
synced 2025-04-19 19:16:50 +00:00
refactor: always return Warn state as last possible result
All checks were successful
CI / test (push) Successful in 1m52s
All checks were successful
CI / test (push) Successful in 1m52s
This commit is contained in:
parent
b693ac000b
commit
55fbf07370
@ -18,10 +18,9 @@ impl Checker<'_> {
|
|||||||
impl HttpBasedChecker for Checker<'_> {
|
impl HttpBasedChecker for Checker<'_> {
|
||||||
async fn check_response(response: Response) -> CheckState {
|
async fn check_response(response: Response) -> CheckState {
|
||||||
if response.status().is_success() {
|
if response.status().is_success() {
|
||||||
CheckState::Up
|
return CheckState::Up;
|
||||||
} else {
|
|
||||||
CheckState::Warn
|
|
||||||
}
|
}
|
||||||
|
CheckState::Warn
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_check_config(&self) -> &CheckConfig {
|
fn get_check_config(&self) -> &CheckConfig {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user