Merge pull request #1121 from milosgajdos83/no-routes-found
Continue processing Sync if no routes were returned from router Query
This commit is contained in:
commit
ee922a3da6
@ -942,7 +942,7 @@ func (n *network) processNetChan(listener tunnel.Listener) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
routes, err := n.router.Table().Query(q...)
|
routes, err := n.router.Table().Query(q...)
|
||||||
if err != nil {
|
if err != nil && err != router.ErrRouteNotFound {
|
||||||
log.Debugf("Network node %s failed listing best routes for %s: %v", n.id, route.Service, err)
|
log.Debugf("Network node %s failed listing best routes for %s: %v", n.id, route.Service, err)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
@ -1286,7 +1286,7 @@ func (n *network) getProtoRoutes() ([]*pbRtr.Route, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
routes, err := n.router.Table().Query(q...)
|
routes, err := n.router.Table().Query(q...)
|
||||||
if err != nil {
|
if err != nil && err != router.ErrRouteNotFound {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user