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:
3 files changed
+21
-16
No files matched your search
+3
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user