graphdb: pass context to GraphSession

This commit is contained in:
Elle Mouton committed 2026-02-25 16:11:46 +02:00
1 parent 8722a96a4e
commit 0bb0d66952
9 files changed
+19 -16

No files matched your search

+2 -1
View File
@@ -156,7 +156,8 @@ type Store interface { //nolint:interfacebloat
// GraphSession will provide the call-back with access to a
// NodeTraverser instance which can be used to perform queries against
// the channel graph.
GraphSession(cb func(graph NodeTraverser) error, reset func()) error
GraphSession(ctx context.Context,
cb func(graph NodeTraverser) error, reset func()) error
// ForEachChannel iterates through all the channel edges stored within
// the graph and invokes the passed callback for each edge. The callback