From 68648a16b9d5121bf29ad65ca24e4617e6035e8c Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Thu, 22 Jun 2023 09:12:35 -0300 Subject: [PATCH] remove conn field from subscription. --- relay.go | 1 - subscription.go | 1 - 2 files changed, 2 deletions(-) diff --git a/relay.go b/relay.go index 448418e..c4f88b8 100644 --- a/relay.go +++ b/relay.go @@ -466,7 +466,6 @@ func (r *Relay) PrepareSubscription(ctx context.Context, filters Filters, opts . Relay: r, Context: ctx, cancel: cancel, - conn: r.Connection, counter: int(current), Events: make(chan *Event), EndOfStoredEvents: make(chan struct{}), diff --git a/subscription.go b/subscription.go index 8a4bb74..5625630 100644 --- a/subscription.go +++ b/subscription.go @@ -10,7 +10,6 @@ import ( type Subscription struct { label string counter int - conn *Connection Relay *Relay Filters Filters