From 46e2a9e9b8a4eaa7e31f7dcb27da48e0d2304f2c Mon Sep 17 00:00:00 2001 From: Joost Jager Date: Fri, 9 Aug 2019 11:44:27 +0200 Subject: [PATCH] invoices: reuse client.notify function --- invoices/invoiceregistry.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/invoices/invoiceregistry.go b/invoices/invoiceregistry.go index 06f592ba..80f4474f 100644 --- a/invoices/invoiceregistry.go +++ b/invoices/invoiceregistry.go @@ -226,13 +226,7 @@ func (i *InvoiceRegistry) dispatchToSingleClients(event *invoiceEvent) { continue } - select { - case client.ntfnQueue.ChanIn() <- &invoiceEvent{ - invoice: event.invoice, - }: - case <-i.quit: - return - } + client.notify(event) } }