- Preparation for demo
This commit is contained in:
Tim Beatham 2024-01-18 09:59:37 +00:00
parent 901674a5e3
commit ad4d461332
2 changed files with 7 additions and 8 deletions

View File

@ -341,7 +341,7 @@ func (m *TwoPhaseStoreMeshManager) RemoveRoutes(nodeId string, routes ...mesh.Ro
for _, route := range routes {
changes = true
logging.Log.WriteInfof("deleting: %s", route.GetDestination().String())
logging.Log.WriteInfof("deleting route: %s", route.GetDestination().String())
delete(node.Routes, route.GetDestination().String())
}

View File

@ -242,15 +242,14 @@ func (s *SyncerImpl) SyncMeshes() error {
if err != nil {
logging.Log.WriteErrorf("failed to update config %s", err.Error())
}
err = s.meshManager.GetRouteManager().UpdateRoutes()
if err != nil {
logging.Log.WriteErrorf("update routes failed %s", err.Error())
}
}
return err
err = s.meshManager.GetRouteManager().UpdateRoutes()
if err != nil {
logging.Log.WriteErrorf("update routes failed %s", err.Error())
}
return nil
}
type NewSyncerParams struct {