Commit c81f4a9
Remove unreachable async code path for stale entry processing
- Removed lines 475-483 that checked entry._processing with next_time=True
- This code path was unreachable in async because mark_entry_being_calculated/mark_entry_not_calculated are called immediately in sequence
- The window for entry._processing=True was too brief to be hit by concurrent calls
- Simplified async path now only has two cases: next_time=True (return stale + background update) or next_time=False (recalculate and wait)
- Updated test docstring to reflect what's actually being tested (concurrent calls with stale cache)
- All 30 tests still passing
Co-authored-by: Borda <6035284+Borda@users.noreply.github.com>1 parent 6be5c10 commit c81f4a9
2 files changed
Lines changed: 3 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | 475 | | |
485 | 476 | | |
486 | 477 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
560 | 560 | | |
561 | 561 | | |
562 | 562 | | |
563 | | - | |
| 563 | + | |
564 | 564 | | |
565 | | - | |
566 | | - | |
| 565 | + | |
| 566 | + | |
567 | 567 | | |
568 | 568 | | |
569 | 569 | | |
| |||
0 commit comments