mirror of
https://github.com/loro-dev/loro.git
synced 2024-12-01 04:28:18 +00:00
feat: replace notify set range method
This commit is contained in:
parent
bf8973c758
commit
bd30f675a6
2 changed files with 2 additions and 2 deletions
|
@ -255,7 +255,7 @@ impl Tracker {
|
||||||
debug_log!("DELETED SPANS={}", format!("{:#?}", &spans).red());
|
debug_log!("DELETED SPANS={}", format!("{:#?}", &spans).red());
|
||||||
self.update_spans(&spans, StatusChange::Delete);
|
self.update_spans(&spans, StatusChange::Delete);
|
||||||
self.id_to_cursor
|
self.id_to_cursor
|
||||||
.set_large_range((id).into(), cursor_map::Marker::Delete(spans));
|
.set_small_range((id).into(), cursor_map::Marker::Delete(spans));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,7 +23,7 @@ pub struct OpSpanSet {
|
||||||
|
|
||||||
impl OpSet<YSpan, ID> for OpSpanSet {
|
impl OpSet<YSpan, ID> for OpSpanSet {
|
||||||
fn insert(&mut self, value: &YSpan) {
|
fn insert(&mut self, value: &YSpan) {
|
||||||
self.map.set_large_range(
|
self.map.set_small_range(
|
||||||
value.id.into(),
|
value.id.into(),
|
||||||
WithStartEnd {
|
WithStartEnd {
|
||||||
start: value.id.into(),
|
start: value.id.into(),
|
||||||
|
|
Loading…
Reference in a new issue