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:
Asim Aslam 2020-01-17 13:05:47 +00:00 committed by GitHub
commit ee922a3da6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
} }