invoices: reuse client.notify function
This commit is contained in:
parent
bed2acea33
commit
46e2a9e9b8
@ -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
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user