invoices: remove unused invoiceSubscriptionKit wait group

This commit is contained in:
eugene 2022-05-05 11:06:08 -04:00
parent 5ddad90a17
commit d099991339
No known key found for this signature in database
GPG key ID: 118759E83439A9B1

View file

@ -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 {