Aggregate entries in messages

This commit is contained in:
Rodolphe Bréard 2023-03-19 20:32:11 +01:00
parent 420a23ad35
commit 1945abfc2a
3 changed files with 51 additions and 4 deletions

View file

@ -9,6 +9,10 @@ pub struct Entry {
}
impl Entry {
pub fn get_msg_id(&self) -> String {
format!("{}.{}", self.session_id, self.token)
}
pub fn get_session_id(&self) -> &str {
&self.session_id
}