Query and set seen status via store
This commit is contained in:
parent
20ec6ef3b3
commit
ff4118e21d
4 changed files with 48 additions and 1 deletions
|
|
@ -31,6 +31,10 @@ impl Msg for LogMsg {
|
|||
None
|
||||
}
|
||||
|
||||
fn seen(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
fn last_possible_id() -> Self::Id {
|
||||
Self::Id::MAX
|
||||
}
|
||||
|
|
@ -118,6 +122,8 @@ impl MsgStore<LogMsg> for Logger {
|
|||
async fn newer_msg_id(&self, id: &usize) -> Option<usize> {
|
||||
self.next_tree_id(id).await
|
||||
}
|
||||
|
||||
async fn set_seen(&self, _id: &usize, _seen: bool) {}
|
||||
}
|
||||
|
||||
impl Log for Logger {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue