routing+refactor: remove the need to give CachedGraph source node access

In preparation for the next commit.
This commit is contained in:
Elle Mouton
2024-06-25 19:27:13 -07:00
parent 3f121cbe81
commit 90d6b863a8
6 changed files with 15 additions and 46 deletions

View File

@@ -47,7 +47,7 @@ type SessionSource struct {
// getRoutingGraph returns a routing graph and a clean-up function for
// pathfinding.
func (m *SessionSource) getRoutingGraph() (Graph, func(), error) {
routingTx, err := NewCachedGraph(m.SourceNode, m.Graph)
routingTx, err := NewCachedGraph(m.Graph)
if err != nil {
return nil, nil, err
}