Aggregate entries in messages
This commit is contained in:
parent
420a23ad35
commit
1945abfc2a
3 changed files with 51 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue