graph/db: expose reset in ForEachSourceNodeChannel

This commit is contained in:
Elle Mouton committed 2025-07-15 11:23:27 +02:00
1 parent 88261834e5
commit 16126d7703
5 files changed
+19 -12

No files matched your search

+1 -3
View File
@@ -727,9 +727,7 @@ func (s *SQLStore) updateEdgeCache(e *models.ChannelEdgePolicy,
// NOTE: part of the V1Store interface.
func (s *SQLStore) ForEachSourceNodeChannel(ctx context.Context,
cb func(chanPoint wire.OutPoint, havePolicy bool,
otherNode *models.LightningNode) error) error {
reset := func() {}
otherNode *models.LightningNode) error, reset func()) error {
return s.db.ExecTx(ctx, sqldb.ReadTxOpt(), func(db SQLQueries) error {
nodeID, nodePub, err := s.getSourceNode(ctx, db, ProtocolV1)