Tidy up feature reporting

This commit is contained in:
Kirill Bulatov
2022-10-08 09:57:05 +03:00
committed by Kirill Bulatov
parent 9f79e7edea
commit 01d2c52c82
3 changed files with 15 additions and 12 deletions

View File

@@ -784,7 +784,7 @@ async fn tenant_config_handler(mut request: Request<Body>) -> Result<Response<Bo
json_response(StatusCode::OK, ())
}
#[cfg(any(feature = "testing", feature = "failpoints"))]
#[cfg(feature = "testing")]
async fn failpoints_handler(mut request: Request<Body>) -> Result<Response<Body>, ApiError> {
if !fail::has_failpoints() {
return Err(ApiError::BadRequest(anyhow!(