fix service caching
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
017f5600e7
commit
78ef338fe3
3
grpc.go
3
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
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user