Remove precache in favour of just pulling by default
This commit is contained in:
parent
cf0dc1bcd2
commit
f48a785d53
@ -473,12 +473,10 @@ 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
|
||||||
if r.options.Gateway != "" {
|
if r.options.Gateway != "" {
|
||||||
|
Loading…
Reference in New Issue
Block a user