router: move self node out of config

We are going to use the config struct to allow getting and setting
of the mission control config in the commits that follow. Self node
is not something we want to change, so we move it out for better
separation.
This commit is contained in:
carla
2021-01-19 10:57:10 +02:00
parent b2857bf392
commit 0735d359b9
6 changed files with 11 additions and 16 deletions

View File

@@ -33,7 +33,7 @@ func TestRequestRoute(t *testing.T) {
func() (routingGraph, func(), error) {
return &sessionGraph{}, func() {}, nil
},
&MissionControl{cfg: &MissionControlConfig{}},
&MissionControl{},
PathFindingConfig{},
)
if err != nil {