fix service caching
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
017f5600e7
commit
78ef338fe3
5
grpc.go
5
grpc.go
@ -709,7 +709,6 @@ func (g *grpcServer) Register() error {
|
|||||||
|
|
||||||
var err error
|
var err error
|
||||||
var service *registry.Service
|
var service *registry.Service
|
||||||
var cacheService bool
|
|
||||||
|
|
||||||
service, err = server.NewRegistryService(g)
|
service, err = server.NewRegistryService(g)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -800,9 +799,7 @@ func (g *grpcServer) Register() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
g.registered = true
|
g.registered = true
|
||||||
if cacheService {
|
g.rsvc = service
|
||||||
g.rsvc = service
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user