mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-11-17 00:20:51 +00:00
fix: drop the unreachable oneshot map_err rejected by rustc 1.100 (#12407)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
46193f063a
commit
164528563d
@@ -400,7 +400,7 @@ impl Ctx<'_> {
|
||||
};
|
||||
let request = request.body(body).map_err(|e| e.to_string())?;
|
||||
tokio::time::timeout(timeout, async {
|
||||
let response = router.oneshot(request).await.map_err(|e| e.to_string())?;
|
||||
let Ok(response) = router.oneshot(request).await;
|
||||
let status = response.status();
|
||||
let bytes = axum::body::to_bytes(response.into_body(), usize::MAX)
|
||||
.await
|
||||
|
||||
Reference in New Issue
Block a user