trying to prevent leaking subscriptions.

This commit is contained in:
fiatjaf
2026-02-26 23:01:18 -03:00
parent 00ffe16cb7
commit c31b92707b
5 changed files with 25 additions and 12 deletions
+5
View File
@@ -9,6 +9,11 @@ import (
"time"
)
var (
ErrNotConnected = errors.New("not connected")
ErrFireFailed = errors.New("failed to fire")
)
// Subscription represents a subscription to a relay.
type Subscription struct {
counter int64