From 78ef338fe3d6c8ff1d93e131b879bb0c2a841581 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Thu, 5 Nov 2020 01:43:34 +0300 Subject: [PATCH] fix service caching Signed-off-by: Vasiliy Tolstov --- grpc.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/grpc.go b/grpc.go index defe5e0..f387c9b 100644 --- a/grpc.go +++ b/grpc.go @@ -709,7 +709,6 @@ func (g *grpcServer) Register() error { var err error var service *registry.Service - var cacheService bool service, err = server.NewRegistryService(g) if err != nil { @@ -800,9 +799,7 @@ func (g *grpcServer) Register() error { } g.registered = true - if cacheService { - g.rsvc = service - } + g.rsvc = service return nil }