mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
Refactor NostrClient into specialized managers
- Extracted persistence logic to `PersistenceManager` - Extracted connection/pool logic to `ConnectionManager` - Extracted signer/auth logic to `SignerManager` - Updated `NostrClient` to delegate to these managers - Fixed `SignerManager` implementation gaps (NIP-46 connect/restore) - Verified with `tests/nostr/client.test.mjs` Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
1fbee4219b
commit
8b1bd5507d
7 files changed
+2776
-4224
No files matched your search
@@ -157,7 +157,7 @@ describe("NostrClient", () => {
|
||||
assert.ok(sub);
|
||||
|
||||
// Wait for buffer flush (75ms debounce)
|
||||
await new Promise(r => setTimeout(r, 150));
|
||||
await new Promise(r => setTimeout(r, 300));
|
||||
|
||||
assert.ok(capturedVideo, "Video should be captured after flush");
|
||||
assert.equal(capturedVideo.id, "v1");
|
||||
|
||||
Reference in new issue
Block a user