MCPcopy Create free account
hub / github.com/cowprotocol/services / get_ready_handler

Function get_ready_handler

crates/orderbook/src/api/ready.rs:11–19  ·  view source on GitHub ↗
(State(state): State<Arc<AppState>>)

Source from the content-addressed store, hash-verified

9};
10
11pub async fn get_ready_handler(State(state): State<Arc<AppState>>) -> Response {
12 match state.database_write.last_used_auction_id().await {
13 Ok(_maybe_id) => StatusCode::OK.into_response(),
14 Err(err) => {
15 tracing::error!(?err, "/api/v1/ready");
16 crate::api::internal_error_reply()
17 }
18 }
19}

Callers

nothing calls this directly

Calls 3

internal_error_replyFunction · 0.85
last_used_auction_idMethod · 0.80
into_responseMethod · 0.45

Tested by

no test coverage detected