Skip to content

Commit

Permalink
graph: derived queries should respect causality region
Browse files Browse the repository at this point in the history
  • Loading branch information
incrypto32 committed Jul 9, 2024
1 parent 6066d25 commit 06bf21b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions graph/src/components/store/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ impl DerivedEntityQuery {
/// Checks if a given key and entity match this query.
pub fn matches(&self, key: &EntityKey, entity: &Entity) -> bool {
key.entity_type == self.entity_type
&& key.causality_region == self.causality_region
&& entity
.get(&self.entity_field)
.map(|v| &self.value == v)
Expand Down

0 comments on commit 06bf21b

Please sign in to comment.