charkost / prosopite

:mag: Rails N+1 queries auto-detection with zero false positives / false negatives
Apache License 2.0
1.53k stars 46 forks source link

Allow nested pause blocks without resuming inner blocks #47

Closed geshwho closed 2 years ago

geshwho commented 2 years ago

Addresses part of #43.

Instead of always setting tc[:prosopite_scan] to true at the end of a pause block, we can remember the previous value from before the pause block and set it to that. This allows nesting of pauses, however deep, without resuming the scan until the outermost pause has reached the end of the block.

charkost commented 2 years ago

Thanks @geshwho !