Fix format checks and local error messages

This commit is contained in:
fawney19
2026-04-27 00:27:03 +08:00
parent 0c73f245ab
commit 3991d47166
2 changed files with 8 additions and 21 deletions

View File

@@ -1371,7 +1371,6 @@ pub(crate) async fn proxy_request(
http::StatusCode::SERVICE_UNAVAILABLE,
local_execution_runtime_miss_client_message(
local_execution_runtime_miss_detail.as_str(),
local_execution_runtime_miss_diagnostic.as_ref(),
)
.as_str(),
)?;
@@ -1440,15 +1439,8 @@ fn local_execution_runtime_miss_detail(
local_execution_runtime_miss_route_detail(decision).map(ToOwned::to_owned)
}
fn local_execution_runtime_miss_client_message(
detail: &str,
diagnostic: Option<&LocalExecutionRuntimeMissDiagnostic>,
) -> String {
if diagnostic.is_some_and(|diagnostic| diagnostic.reason.as_str() == "candidate_list_empty") {
beautify_local_execution_client_error_message(detail)
} else {
detail.to_string()
}
fn local_execution_runtime_miss_client_message(detail: &str) -> String {
beautify_local_execution_client_error_message(detail)
}
fn local_execution_runtime_miss_diagnostic_detail(