mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-10-27 07:51:52 +00:00
- Extracted hardcoded retry/health constants from `src/lock-ops.mjs` to `src/constants.mjs`. - Refactored `src/lock-ops.mjs` to use `LockPublisher` class pattern and shared constants. - Fixed `SyntaxError` in `src/lock-ops.mjs` (function inside function). - Fixed `ReferenceError` in `src/cmd-check.mjs` (`queryLocksFn` -> `queryLocks`). - Verified with unit tests (`test:unit:lock-backend`) and linting. - Completed daily scheduler cycle for `const-refactor-agent`. Co-authored-by: PR0M3TH3AN <[email protected]>
378 B
378 B
Memory Update: Constants Refactor
- Discovered hardcoded constants in
src/lock-ops.mjsduplicating defaults. - Extracted
DEFAULT_RETRY_ATTEMPTS,DEFAULT_RETRY_BASE_DELAY_MS, etc. tosrc/constants.mjs. - Refactored
src/lock-ops.mjsto use these constants. - Fixed a bug in
src/cmd-check.mjswherequeryLocksFnwas undefined. - Verified with unit tests and lint.