summaryrefslogtreecommitdiffstats
path: root/examples/basic/main.go
Commit message (Collapse)AuthorAgeFilesLines
* fix: cleanup benchbndw7 hours1-1/+1
|
* refactor: race-safe Subscribe/Fetch API with channel-based Publishbndw9 days1-32/+7
| | | | | | | | | | - Add mutex-guarded send/stop on Subscription to prevent send-on-closed-channel panics and data races - Split Subscribe (streams after EOSE) and Fetch (closes on EOSE) per NIP-01 - Rewrite Publish to use channel-based OK dispatch instead of calling Receive directly, which raced with the auto-started Listen goroutine - Clean up all subscriptions when Listen exits so range loops terminate - Update tests and examples for new API
* wipbndw9 days1-0/+103