Commit 2fa3f7e
fix: add var declaration to prevent implicit global race condition
metric_data was assigned without var/let/const, creating an
implicit global variable. Concurrent requests to
/api/v1/metric-data could overwrite each other's data, returning
wrong results. Add var to make it function-scoped.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent ced0adc commit 2fa3f7e
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1637 | 1637 | | |
1638 | 1638 | | |
1639 | 1639 | | |
1640 | | - | |
| 1640 | + | |
1641 | 1641 | | |
1642 | 1642 | | |
1643 | 1643 | | |
| |||
0 commit comments