Merge pull request #908 from hb-chen/fix-907

fix-907
This commit is contained in:
Asim Aslam 2019-11-02 08:59:14 +00:00 committed by GitHub
commit a94a95ab55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -118,6 +118,11 @@ func (s *service) register() error {
if s.opts.Registry != nil {
r = s.opts.Registry
}
// service node need modify, node address maybe changed
srv := s.genSrv()
srv.Endpoints = s.srv.Endpoints
s.srv = srv
return r.Register(s.srv, registry.RegisterTTL(s.opts.RegisterTTL))
}