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.
This commit is contained in:
Conner Fromknecht 2020-05-27 20:20:29 -07:00
parent 3faf8bad3f
commit eae8e6de17
No known key found for this signature in database
GPG Key ID: E7D737B67FA592C7

@ -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()