Cleaned up the testing.
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 2s

This commit is contained in:
2025-12-23 22:15:49 -05:00
parent d06c228c81
commit 97df1a8ece
3 changed files with 285 additions and 179 deletions

View File

@@ -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(),
};