From f48a785d53ce025b0683b584df6a3a75f99e6c94 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Thu, 6 Aug 2020 10:27:58 +0100 Subject: [PATCH] Remove precache in favour of just pulling by default --- registry.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/registry.go b/registry.go index e3e3728..ac19285 100644 --- a/registry.go +++ b/registry.go @@ -473,11 +473,9 @@ func (r *rtr) start() error { return nil } - if r.options.Precache { - // add all local service routes into the routing table - if err := r.manageRegistryRoutes(r.options.Registry, "create"); err != nil { - return fmt.Errorf("failed adding registry routes: %s", err) - } + // add all local service routes into the routing table + if err := r.manageRegistryRoutes(r.options.Registry, "create"); err != nil { + return fmt.Errorf("failed adding registry routes: %s", err) } // add default gateway into routing table