invoices: reuse client.notify function

This commit is contained in:
Joost Jager 2019-08-09 11:44:27 +02:00
parent bed2acea33
commit 46e2a9e9b8
No known key found for this signature in database
GPG Key ID: A61B9D4C393C59C7

@ -226,13 +226,7 @@ func (i *InvoiceRegistry) dispatchToSingleClients(event *invoiceEvent) {
continue continue
} }
select { client.notify(event)
case client.ntfnQueue.ChanIn() <- &invoiceEvent{
invoice: event.invoice,
}:
case <-i.quit:
return
}
} }
} }