Moved session into own module.
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s
This commit is contained in:
@@ -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())),
|
||||
|
||||
Reference in New Issue
Block a user