feat: replace notify set range method

This commit is contained in:
Zixuan Chen 2022-10-27 22:43:15 +08:00
parent bf8973c758
commit bd30f675a6
2 changed files with 2 additions and 2 deletions

View file

@ -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));
} }
} }
} }

View file

@ -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(),