graph/db: let ForEachNode take a context
This commit is contained in:
8 files changed
+14
-14
No files matched your search
@@ -101,7 +101,7 @@ type V1Store interface { //nolint:interfacebloat
|
||||
// passed to the call-back are executed under the same read transaction
|
||||
// and so, methods on the NodeTx object _MUST_ only be called from
|
||||
// within the call-back.
|
||||
ForEachNode(cb func(tx NodeRTx) error) error
|
||||
ForEachNode(ctx context.Context, cb func(tx NodeRTx) error) error
|
||||
|
||||
// ForEachNodeCacheable iterates through all the stored vertices/nodes
|
||||
// in the graph, executing the passed callback with each node
|
||||
|
||||
Reference in new issue
Block a user