Moved failed to find document into lib tests.
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:
@@ -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::*;
|
||||
|
||||
Reference in New Issue
Block a user