fix service caching

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2020-11-05 01:43:34 +03:00
parent 017f5600e7
commit 78ef338fe3

View File

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