mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-12 14:10:19 +08:00
Merge branch 'pr-453'
This commit is contained in:
@@ -155,6 +155,7 @@ pub async fn serve_execution_runtime_tcp(
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[cfg(unix)]
|
||||
pub async fn serve_execution_runtime_unix(
|
||||
socket_path: &Path,
|
||||
max_in_flight_requests: Option<usize>,
|
||||
@@ -179,6 +180,19 @@ pub async fn serve_execution_runtime_unix(
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[cfg(not(unix))]
|
||||
pub async fn serve_execution_runtime_unix(
|
||||
_socket_path: &Path,
|
||||
_max_in_flight_requests: Option<usize>,
|
||||
_distributed_request_gate: Option<RuntimeSemaphore>,
|
||||
) -> Result<(), Box<dyn std::error::Error>> {
|
||||
Err(std::io::Error::new(
|
||||
std::io::ErrorKind::Unsupported,
|
||||
"Unix sockets are not supported on this platform",
|
||||
)
|
||||
.into())
|
||||
}
|
||||
|
||||
async fn health(State(state): State<ExecutionRuntimeAppState>) -> impl IntoResponse {
|
||||
let request_concurrency = state.request_concurrency_snapshot().map(|snapshot| {
|
||||
json!({
|
||||
|
||||
Reference in New Issue
Block a user