forked from extern/smegmesh
main
- Preparation for demo
This commit is contained in:
parent
901674a5e3
commit
ad4d461332
@ -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())
|
||||
}
|
||||
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user