Merge pull request #2547 from PR0M3TH3AN/agents/daily/const-refactor-standard-timeout-13590236657538422230

[constants] extract STANDARD_TIMEOUT_MS (10000) -> js/constants.js
This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2026-02-16 06:16:53 -05:00
commit 3d7ea4ed74
9 files changed
+118 -5

No files matched your search

@@ -0,0 +1,17 @@
# Decisions: Constants Refactor
**Date:** 2026-02-16
## Refactor: `10000` -> `STANDARD_TIMEOUT_MS`
- **Value:** `10000` (ms)
- **Chosen Constant:** `STANDARD_TIMEOUT_MS`
- **Location:** `js/constants.js` (Existing)
- **Reasoning:**
- Multiple files defined `timeoutMs = 10000` as a default.
- `STANDARD_TIMEOUT_MS` already exists in `js/constants.js` with this exact value and intent.
- Centralizing this improves consistency and allows global timeout adjustments.
## Rejected Candidates (for this pass)
- `js/nostrEventSchemas.js` (Kind 10000): Not a time duration.
- `js/storage/s3-multipart.js` (maxParts 10000): Not a time duration.