Moved failed to find document into lib tests.
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s

This commit is contained in:
2026-02-25 13:44:43 -05:00
parent 5251689158
commit 97f9d24330
8 changed files with 50 additions and 37 deletions

View File

@@ -33,21 +33,6 @@ impl Message {
}
}
/*
pub fn new<D, A>(doc_id: D, action: A) -> Self
where
D: Into<NameType>,
A: Into<MsgAction>,
{
Self {
msg_id: Uuid::new_v4(),
document_id: doc_id.into(),
action: action.into(),
route: Route::default(),
}
}
*/
pub fn get_message_id(&self) -> &Uuid {
&self.msg_id
}
@@ -96,6 +81,12 @@ impl Message {
}
}
impl MessageAction for Message {
fn doc_name(&self) -> &NameType {
self.get_action().doc_name()
}
}
#[cfg(test)]
mod messages {
use super::*;