invoices: refactor - add interface for expiry items
In preparation for having more than one expiry type, we alias the queue.PrioirtyQueueItem interface for readability.
This commit is contained in:
3 files changed
+35
-21
No files matched your search
@@ -157,7 +157,7 @@ func TestInvoiceExpiryWhenAddingMultipleInvoices(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
test := newInvoiceExpiryWatcherTest(t, testTime, 5, 5)
|
||||
var invoices []*invoiceExpiryTs
|
||||
var invoices []invoiceExpiry
|
||||
|
||||
for hash, invoice := range test.testData.expiredInvoices {
|
||||
invoices = append(invoices, makeInvoiceExpiry(hash, invoice))
|
||||
|
||||
Reference in new issue
Block a user