mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-08 22:02:54 +00:00
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:
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.
|
||||
Reference in new issue
Block a user