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:
@@ -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,
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user