channeldb/payments: use only Read bucket when iterating
This commit is contained in:
parent
7e3738d773
commit
6eb42aec0a
@ -694,7 +694,7 @@ func (db *DB) DeletePayments(failedOnly bool) error {
|
|||||||
deleteIndexes [][]byte
|
deleteIndexes [][]byte
|
||||||
)
|
)
|
||||||
err := payments.ForEach(func(k, _ []byte) error {
|
err := payments.ForEach(func(k, _ []byte) error {
|
||||||
bucket := payments.NestedReadWriteBucket(k)
|
bucket := payments.NestedReadBucket(k)
|
||||||
if bucket == nil {
|
if bucket == nil {
|
||||||
// We only expect sub-buckets to be found in
|
// We only expect sub-buckets to be found in
|
||||||
// this top-level bucket.
|
// this top-level bucket.
|
||||||
|
Loading…
Reference in New Issue
Block a user