From eae8e6de17938436eade22ba72da1b6b25215269 Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Wed, 27 May 2020 20:20:29 -0700 Subject: [PATCH] channeldb/invoices: correct stray kvdb.ReadBucket to RBucket We recently renamed kvdb.ReadBucket to kvdb.RBucket in #4252, but this was not detected in #4285 since this new code didn't produce a conflict. --- channeldb/invoices.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channeldb/invoices.go b/channeldb/invoices.go index 0ba71531..4b9c1002 100644 --- a/channeldb/invoices.go +++ b/channeldb/invoices.go @@ -654,7 +654,7 @@ func (d *DB) LookupInvoice(ref InvoiceRef) (Invoice, error) { // reference. The payment address will be treated as the primary key, falling // back to the payment hash if nothing is found for the payment address. An // error is returned if the invoice is not found. -func fetchInvoiceNumByRef(invoiceIndex, payAddrIndex kvdb.ReadBucket, +func fetchInvoiceNumByRef(invoiceIndex, payAddrIndex kvdb.RBucket, ref InvoiceRef) ([]byte, error) { payHash := ref.PayHash()