mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
611 B
611 B
Decisions for Constants Refactor
- 5000ms timeout in
js/subscriptions.js: Replaced withSHORT_TIMEOUT_MSfromjs/constants.js. The usage matches the definition of a "short timeout" for background operations or quick fallbacks. - 10000ms timeout in
js/userBlocks.js: Replaced withSTANDARD_TIMEOUT_MSfromjs/constants.js. The usage is for a fetch operation which aligns with the standard timeout definition.
Alternatives considered:
- Creating specific constants like
NIP07_SHORT_TIMEOUT_MS. Rejected becauseSHORT_TIMEOUT_MSis generic enough and already used for similar purposes.