channeldb: add context to query method

We add a context for the query method because the query method
is part of the paymentDB interface and for the SQL case
we will need the context for this method because the native
SQL drivers demand one. So we add it for the kv implementation
here as well so we can then make use of the new interface type.
This commit is contained in:
ziggie committed 2025-08-11 16:44:13 +02:00
1 parent 2269859d98
commit db2c50a599
3 files changed
+21 -16

No files matched your search

+3 -1
View File
@@ -7528,7 +7528,9 @@ func (r *rpcServer) ListPayments(ctx context.Context,
query.MaxPayments = math.MaxUint64
}
paymentsQuerySlice, err := r.server.kvPaymentsDB.QueryPayments(query)
paymentsQuerySlice, err := r.server.kvPaymentsDB.QueryPayments(
ctx, query,
)
if err != nil {
return nil, err
}