move RumaResponse out of core Error; cleanup Error conversions.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-07-08 02:50:10 +00:00
parent 59d86d3641
commit 7ba0777bd3
9 changed files with 122 additions and 110 deletions

View file

@ -1,13 +1,13 @@
use std::sync::{atomic::Ordering, Arc};
use axum::{extract::State, response::IntoResponse};
use conduit::{debug_error, debug_warn, defer, Result, RumaResponse, Server};
use conduit::{debug, debug_error, debug_warn, defer, error, trace, Result, Server};
use conduit_api::RumaResponse;
use http::{Method, StatusCode, Uri};
use ruma::api::client::{
error::{Error as RumaError, ErrorBody, ErrorKind},
uiaa::UiaaResponse,
};
use tracing::{debug, error, trace};
#[tracing::instrument(skip_all, level = "debug")]
pub(crate) async fn spawn(