Skip to content

Commit

Permalink
Track write with appropriate durability
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaReiser committed Jul 29, 2024
1 parent f2245c0 commit 0cae5c5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ impl<C: Configuration> IngredientImpl<C> {
let id: Id = id.as_id();
let mut r = self.struct_map.update(id);
let stamp = &mut r.stamps[field_index];

if stamp.durability != Durability::LOW {
runtime.report_tracked_write(stamp.durability);
}

stamp.durability = durability;
stamp.changed_at = revision;
setter(&mut r.fields)
Expand Down

0 comments on commit 0cae5c5

Please sign in to comment.