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

+3 -2
View File
@@ -1,6 +1,7 @@
package routing
import (
"context"
"testing"
"time"
@@ -260,8 +261,8 @@ func (g *sessionGraph) sourceNode() route.Vertex {
return route.Vertex{}
}
func (g *sessionGraph) GraphSession(cb func(graph graphdb.NodeTraverser) error,
_ func()) error {
func (g *sessionGraph) GraphSession(_ context.Context,
cb func(graph graphdb.NodeTraverser) error, _ func()) error {
return cb(g)
}