graph/db: thread context through NumZombies

This commit is contained in:
Elle Mouton committed 2026-02-25 15:33:34 +02:00
1 parent f98905ae99
commit 37cc6b29d9
6 files changed
+7 -8

No files matched your search

+1 -2
View File
@@ -1912,9 +1912,8 @@ func (s *SQLStore) IsZombieEdge(ctx context.Context, v lnwire.GossipVersion,
// NumZombies returns the current number of zombie channels in the graph.
//
// NOTE: part of the Store interface.
func (s *SQLStore) NumZombies() (uint64, error) {
func (s *SQLStore) NumZombies(ctx context.Context) (uint64, error) {
var (
ctx = context.TODO()
numZombies uint64
)
err := s.db.ExecTx(ctx, sqldb.ReadTxOpt(), func(db SQLQueries) error {