Cleaned up the testing.
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 2s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 2s
This commit is contained in:
@@ -52,6 +52,7 @@ async fn create_app(state: MoreThanText) -> Router {
|
||||
.with_state(state)
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[derive(Clone)]
|
||||
struct SessionID(Uuid);
|
||||
|
||||
@@ -82,21 +83,21 @@ where
|
||||
}
|
||||
|
||||
async fn mtt_conn(
|
||||
sess_id: SessionID,
|
||||
_sess_id: SessionID,
|
||||
method: Method,
|
||||
path: Path<HashMap<String, String>>,
|
||||
state: State<MoreThanText>,
|
||||
body: String,
|
||||
_body: String,
|
||||
) -> impl IntoResponse {
|
||||
let (tx, mut rx) = channel(1);
|
||||
let action = match method {
|
||||
let _action = match method {
|
||||
Method::GET => MsgAction::Query(Query::new()),
|
||||
//Method::GET => ActionType::Get,
|
||||
//Method::POST => ActionType::Add,
|
||||
//Method::PATCH => ActionType::Update,
|
||||
_ => unreachable!("reouter should prevent this"),
|
||||
};
|
||||
let doc = match path.get("document") {
|
||||
let _doc = match path.get("document") {
|
||||
Some(result) => result.clone(),
|
||||
None => "root".to_string(),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user