graphdb: pass context to ChannelView

This commit is contained in:
Elle Mouton committed 2026-02-25 16:11:46 +02:00
1 parent 7dbaa691c4
commit 9f855175d5
6 files changed
+10 -13

No files matched your search

+2 -5
View File
@@ -2985,11 +2985,8 @@ func (s *SQLStore) deleteChannels(ctx context.Context, db SQLQueries,
// closes on the resident blockchain.
//
// NOTE: part of the Store interface.
func (s *SQLStore) ChannelView() ([]EdgePoint, error) {
var (
ctx = context.TODO()
edgePoints []EdgePoint
)
func (s *SQLStore) ChannelView(ctx context.Context) ([]EdgePoint, error) {
var edgePoints []EdgePoint
err := s.db.ExecTx(ctx, sqldb.ReadTxOpt(), func(db SQLQueries) error {
handleChannel := func(_ context.Context,