Add database implementation of channel message change tracking
This commit is contained in:
parent
e0ff7ba180
commit
51cf6a5ff3
9 changed files with 339 additions and 19 deletions
|
@ -9,3 +9,13 @@ pub mod projects;
|
|||
pub mod rooms;
|
||||
pub mod servers;
|
||||
pub mod users;
|
||||
|
||||
fn max_assign<T: Ord>(max: &mut Option<T>, val: T) {
|
||||
if let Some(max_val) = max {
|
||||
if val > *max_val {
|
||||
*max = Some(val);
|
||||
}
|
||||
} else {
|
||||
*max = Some(val);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue