graph/db: thread context through NodeUpdatesInHorizon

This commit is contained in:
Elle Mouton committed 2026-02-25 15:33:34 +02:00
1 parent 0597250ae4
commit 2f0d2962dd
7 files changed
+20 -14

No files matched your search

+3 -2
View File
@@ -633,10 +633,11 @@ func (c *ChannelGraph) ForEachNodeCacheable(ctx context.Context,
// NodeUpdatesInHorizon returns all known lightning nodes with updates in the
// range.
func (c *ChannelGraph) NodeUpdatesInHorizon(startTime, endTime time.Time,
func (c *ChannelGraph) NodeUpdatesInHorizon(ctx context.Context,
startTime, endTime time.Time,
opts ...IteratorOption) iter.Seq2[*models.Node, error] {
return c.db.NodeUpdatesInHorizon(startTime, endTime, opts...)
return c.db.NodeUpdatesInHorizon(ctx, startTime, endTime, opts...)
}
// HasV1Node determines if the graph has a vertex identified by the target node