invoices: remove unused invoiceSubscriptionKit wait group

This commit is contained in:
eugene committed 2022-05-11 13:54:45 -04:00
1 parent 5ddad90a17
commit d099991339
1 file changed
-4
-4
View File
@@ -1403,8 +1403,6 @@ type invoiceSubscriptionKit struct {
// backlogDelivered is closed when the backlog events have been // backlogDelivered is closed when the backlog events have been
// delivered. // delivered.
backlogDelivered chan struct{} backlogDelivered chan struct{}
wg sync.WaitGroup
} }
// InvoiceSubscription represents an intent to receive updates for newly added // InvoiceSubscription represents an intent to receive updates for newly added
@@ -1460,8 +1458,6 @@ func (i *invoiceSubscriptionKit) Cancel() {
i.ntfnQueue.Stop() i.ntfnQueue.Stop()
close(i.cancelChan) close(i.cancelChan)
i.wg.Wait()
} }
func (i *invoiceSubscriptionKit) notify(event *invoiceEvent) error { func (i *invoiceSubscriptionKit) notify(event *invoiceEvent) error {