mirror of
https://github.com/loro-dev/loro.git
synced 2025-01-23 05:24:51 +00:00
fix: lamport order
This commit is contained in:
parent
03a6656413
commit
0cbf5e2548
1 changed files with 1 additions and 1 deletions
|
@ -378,7 +378,7 @@ impl LogStore {
|
|||
.into_values()
|
||||
.flat_map(|c| c.into_iter())
|
||||
// sort changes by lamport from small to large
|
||||
.sorted_by(|a, b| Ord::cmp(&b.lamport, &a.lamport))
|
||||
.sorted_by(|a, b| a.lamport.cmp(&b.lamport))
|
||||
.for_each(|c| {
|
||||
let c_client_id = c.id.client_id;
|
||||
if pending_clients.contains(&c_client_id) {
|
||||
|
|
Loading…
Reference in a new issue