mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-11-07 21:32:13 +00:00
Extract RelayHealthManager and helpers to dedicated modules
- Extracted `RelayHealthManager` to `src/relay-health-manager.mjs`. - Extracted `LockPublisher` to `src/lock-publisher.mjs`. - Consolidated `withTimeout`, `mergeRelayList`, `relayListLabel` into `src/lock-utils.mjs`. - Refactored `src/lock-ops.mjs` to import from these new modules, acting as a facade. - Updated `src/relay-health.mjs` to import `withTimeout` from `src/lock-utils.mjs`. - Updated tests to import from correct locations. - Removed duplicate implementations and significantly reduced `src/lock-ops.mjs` size. Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
8d43fc1be8
commit
465f078e77
9 files changed
+10729
-45
No files matched your search
@@ -1,6 +1,6 @@
|
||||
import { describe, it } from 'node:test';
|
||||
import assert from 'node:assert';
|
||||
import { withTimeout } from '../src/utils.mjs';
|
||||
import { withTimeout } from '../src/lock-utils.mjs';
|
||||
|
||||
describe('Async Utilities', () => {
|
||||
describe('withTimeout', () => {
|
||||
|
||||
Reference in new issue
Block a user