Moved session into own module.
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s

This commit is contained in:
2026-01-26 14:18:40 -05:00
parent 65bf323d3d
commit 102e60bf94
7 changed files with 563 additions and 399 deletions

View File

@@ -473,11 +473,14 @@ impl DocRegistry {
Err(err) => reg.response(RegMsg::Error(err)),
},
RegMsg::AddRoute(path) => {
// let route = self.doc_names.path_to_route(path).unwrap();
let route = self.path_to_route(path).unwrap();
reg.response(RegMsg::RouteID(
self.routes.add(route, reg.get_sender_id().clone()),
))
let response = match self.path_to_route(path) {
Ok(route) => {
let id = self.routes.add(route, reg.get_sender_id().clone());
RegMsg::RouteID(id)
}
Err(err) => RegMsg::Error(err),
};
reg.response(response)
}
RegMsg::GetNameID(name) => match self.doc_names.get_id(name) {
Ok(id) => reg.response(RegMsg::DocumentNameID(id.clone())),