From d0999913396cb5ea7a639f09f09387ef757e6e1a Mon Sep 17 00:00:00 2001 From: eugene Date: Thu, 5 May 2022 11:06:08 -0400 Subject: [PATCH] invoices: remove unused invoiceSubscriptionKit wait group --- invoices/invoiceregistry.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/invoices/invoiceregistry.go b/invoices/invoiceregistry.go index 99ed3aefd..6c26e5b0c 100644 --- a/invoices/invoiceregistry.go +++ b/invoices/invoiceregistry.go @@ -1403,8 +1403,6 @@ type invoiceSubscriptionKit struct { // backlogDelivered is closed when the backlog events have been // delivered. backlogDelivered chan struct{} - - wg sync.WaitGroup } // InvoiceSubscription represents an intent to receive updates for newly added @@ -1460,8 +1458,6 @@ func (i *invoiceSubscriptionKit) Cancel() { i.ntfnQueue.Stop() close(i.cancelChan) - - i.wg.Wait() } func (i *invoiceSubscriptionKit) notify(event *invoiceEvent) error {