mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-03-17 21:32:56 +01:00
improve warning on readme.
This commit is contained in:
parent
bc5c0aa4a1
commit
1c4a64d2a1
@ -141,7 +141,7 @@ func main() {
|
||||
go run example/example.go
|
||||
```
|
||||
|
||||
## Warning: risk of goroutine bloat
|
||||
## Warning: risk of goroutine bloat (if used incorrectly)
|
||||
|
||||
Remember to cancel subscriptions, either by calling `.Unsub()` on them or ensuring their `context.Context` will be canceled at some point.
|
||||
If you don't do that they will keep creating a new goroutine for every new event that arrives and if you have stopped listening on the
|
||||
|
Loading…
x
Reference in New Issue
Block a user