openapi-rust-sdk icon indicating copy to clipboard operation
openapi-rust-sdk copied to clipboard

Openapi SDK calls blocking Axum handler

Open francescobianco opened this issue 1 year ago • 0 comments

Using SDK in an Axum route:

async fn get_data() -> Json<Vec<Item>> {
    let items = client.get_items().await.unwrap();
    Json(items)
}

Some requests block unexpectedly. Is there a recommended pattern for non-blocking SDK calls in Axum?

francescobianco avatar Oct 01 '25 09:10 francescobianco