diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-12-11 13:00:34 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-12-11 13:00:34 +0000 |
| commit | a56e12e0aed87c68fd49b453b5c3dc0bfbf81285 (patch) | |
| tree | c0b6d8e3177b744bba7b0005f56df18d6e9d5620 /docs/README.md | |
| parent | 82c5783a4d40c4273cb12317ec9bf88a2e281a04 (diff) | |
docs(sync): document why RelayConnection uses Client instead of Relay directly
nostr-sdk 0.44's Relay::new() is pub(crate), making it impossible to
construct a Relay directly from outside the crate. Relays can only be
created through Client::add_relay() or RelayPool::add_relay().
This commit:
- Adds 'Why Client instead of Relay directly?' section to struct docs
- Updates run_event_loop() docs to explain the API constraint
- Removes outdated 'Future Refactoring' suggestion (not feasible)
Diffstat (limited to 'docs/README.md')
0 files changed, 0 insertions, 0 deletions