Skip to content

Commit cc78a30

Browse files
update comment
1 parent ff0bf84 commit cc78a30

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

crates/core/src/subscription/module_subscription_manager.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ impl SubscriptionManager {
621621
}
622622

623623
// Update the mapping from table id to related queries by inserting the given query.
624-
// If this query has search arguments, that mapping is updated instead.
624+
// Also add any search arguments the query may have.
625625
// This takes a ref to the table map instead of `self` to avoid borrowing issues.
626626
fn insert_query(
627627
tables: &mut IntMap<TableId, HashSet<QueryHash>>,
@@ -636,6 +636,8 @@ impl SubscriptionManager {
636636
table_ids.remove(&table_id);
637637
search_args.insert_query(table_id, col_id, arg, hash);
638638
}
639+
// Update the `tables` map if this query reads from a table,
640+
// but does not have a search argument for that table.
639641
for table_id in table_ids {
640642
tables.entry(table_id).or_default().insert(hash);
641643
}

0 commit comments

Comments
 (0)