mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-10-27 07:51:52 +00:00
Refactor src/lock-ops.mjs to use dedicated modules
This change confirms the decomposition of `src/lock-ops.mjs` into `src/relay-health-manager.mjs` and `src/lock-publisher.mjs`. - `RelayHealthManager` is now imported from `src/relay-health-manager.mjs`. - `LockPublisher` is now imported from `src/lock-publisher.mjs`. - `src/lock-ops.mjs` acts as an entry point re-exporting these classes. - Tests in `test/lock-ops.test.mjs` pass. - The TODO file `src/todo/TODO_2026-02-20T02-28-25Z.md` is deleted as all tasks are completed. - A comment was added to `src/lock-ops.mjs` to document the refactoring. Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
79e261d7b2
commit
a6bc009719
3 files changed
+3
-3494
No files matched your search
@@ -1,3 +1,6 @@
|
||||
/**
|
||||
* Refactored: RelayHealthManager and LockPublisher extracted to separate modules.
|
||||
*/
|
||||
import { SimplePool } from 'nostr-tools/pool';
|
||||
import {
|
||||
getQueryTimeoutMs,
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
# TODO: Decompose src/lock-ops.mjs
|
||||
|
||||
- [x] Extract `RelayHealthManager` and helpers to `src/relay-health-manager.mjs`
|
||||
- [x] Extract `LockPublisher` and helpers to `src/lock-publisher.mjs`
|
||||
- [x] Refactor `src/lock-ops.mjs` to import new modules
|
||||
- [x] Verify linting passes
|
||||
- [x] Verify tests pass (`npm test`)
|
||||
- [x] Verify file size reduction
|
||||
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user