Commit 6b4029d
committed
review: measure stream lifetime with monotonic performance.now()
Date.now() can step backwards (NTP correction, VM pause), which could
misclassify a healthy long-lived stream as fruitless. performance.now()
is monotonic, already used for durations in middleware.ts, and available
in all target runtimes.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Eqc26ABfbhTimyUUszsUxL1 parent b0d2ee7 commit 6b4029d
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
792 | 792 | | |
793 | 793 | | |
794 | 794 | | |
795 | | - | |
| 795 | + | |
796 | 796 | | |
797 | 797 | | |
798 | 798 | | |
| |||
810 | 810 | | |
811 | 811 | | |
812 | 812 | | |
813 | | - | |
| 813 | + | |
814 | 814 | | |
815 | 815 | | |
816 | 816 | | |
| |||
0 commit comments