invoices: remove unused invoiceSubscriptionKit wait group
This commit is contained in:
1 file changed
-4
@@ -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 {
|
||||||
|
|||||||
Reference in new issue
Block a user