Remove precache in favour of just pulling by default

This commit is contained in:
Asim Aslam 2020-08-06 10:27:58 +01:00 committed by Vasiliy Tolstov
parent cf0dc1bcd2
commit f48a785d53

View File

@ -473,11 +473,9 @@ func (r *rtr) start() error {
return nil return nil
} }
if r.options.Precache { // add all local service routes into the routing table
// add all local service routes into the routing table if err := r.manageRegistryRoutes(r.options.Registry, "create"); err != nil {
if err := r.manageRegistryRoutes(r.options.Registry, "create"); err != nil { return fmt.Errorf("failed adding registry routes: %s", err)
return fmt.Errorf("failed adding registry routes: %s", err)
}
} }
// add default gateway into routing table // add default gateway into routing table