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
|
@ -787,16 +787,6 @@ impl Database {
|
|||
}
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
fn operation_to_storage(
|
||||
operation: &proto::Operation,
|
||||
buffer: &buffer::Model,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue