Skip to content

Commit e628a3e

Browse files
committed
Pass parent dirty to EagerDirty#update
1 parent 07176bd commit e628a3e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

skiplang/prelude/src/skstore/Context.sk

+1-1
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ mutable class Context private {
717717
};
718718
EagerDir::update(
719719
this,
720-
this.dirty,
720+
this.dirty.maybeGet(parentName),
721721
this.dirtyReaders.maybeGet(parentName),
722722
parentName,
723723
parentMaps,

skiplang/prelude/src/skstore/EagerDir.sk

+2-2
Original file line numberDiff line numberDiff line change
@@ -1537,7 +1537,7 @@ class EagerDir protected {
15371537

15381538
static fun update(
15391539
context: mutable Context,
1540-
contextDirty: SortedMap<DirName, SortedSet<Key>>,
1540+
parentDirtyOpt: ?SortedSet<Key>,
15411541
contextDirtyReadersOpt: ?SortedMap<DirName, SortedSet<Key>>,
15421542
parentName: DirName,
15431543
parentMaps: Array<
@@ -1574,7 +1574,7 @@ class EagerDir protected {
15741574
})
15751575
}
15761576
};
1577-
contextDirty.maybeGet(parent.dirName) match {
1577+
parentDirtyOpt match {
15781578
| None() -> void
15791579
| Some(dirtyKeys) ->
15801580
keys = dirtyKeys.values();

0 commit comments

Comments
 (0)