graphdb: pass context to PruneGraph

This commit is contained in:
Elle Mouton committed 2026-02-25 16:11:46 +02:00
1 parent 13668ce45f
commit 7dbaa691c4
6 files changed
+28 -22

No files matched your search

+4 -5
View File
@@ -2831,11 +2831,10 @@ func (s *SQLStore) PruneGraphNodes(ctx context.Context) (
// succeeds without error.
//
// NOTE: part of the Store interface.
func (s *SQLStore) PruneGraph(spentOutputs []*wire.OutPoint,
blockHash *chainhash.Hash, blockHeight uint32) (
[]*models.ChannelEdgeInfo, []route.Vertex, error) {
ctx := context.TODO()
func (s *SQLStore) PruneGraph(ctx context.Context,
spentOutputs []*wire.OutPoint, blockHash *chainhash.Hash,
blockHeight uint32) ([]*models.ChannelEdgeInfo, []route.Vertex,
error) {
s.cacheMu.Lock()
defer s.cacheMu.Unlock()