Update comments

This commit is contained in:
John Kåre Alsaker 2025-03-18 14:36:28 +01:00
parent 077b8d5c37
commit 157008d711
3 changed files with 8 additions and 2 deletions

View file

@ -251,7 +251,10 @@ where
Qcx: QueryContext,
{
let (query_map, complete) = qcx.collect_active_jobs();
// Ensure there was no errors collecting all active jobs.
// We need the complete map to ensure we find a cycle to break.
assert!(complete, "failed to collect active queries");
let error = try_execute.find_cycle_in_stack(query_map, &qcx.current_query_job(), span);
(mk_cycle(query, qcx, error), None)
}