store: Make sure that event position in store is contiguous

This fixes the breaking gap in the timeline when reading the events from
store.
This commit is contained in:
Julian Sparber
2022-03-28 15:50:48 +02:00
parent 4b58017951
commit 07066e1c1f
2 changed files with 2 additions and 2 deletions

View File

@@ -616,7 +616,7 @@ impl IndexeddbStore {
TimelineMetadata {
start: timeline.start.clone(),
end: timeline.end.clone(),
start_position: usize::MAX / 2,
start_position: usize::MAX / 2 + 1,
end_position: usize::MAX / 2,
}
};

View File

@@ -1211,7 +1211,7 @@ impl SledStore {
TimelineMetadata {
start: timeline.start.clone(),
end: timeline.end.clone(),
start_position: usize::MAX / 2,
start_position: usize::MAX / 2 + 1,
end_position: usize::MAX / 2,
}
};