diff --git a/registry/service/service.go b/registry/service/service.go index 7c264977..3be9e97b 100644 --- a/registry/service/service.go +++ b/registry/service/service.go @@ -48,6 +48,10 @@ func (s *serviceRegistry) Init(opts ...registry.Option) error { o(&s.opts) } + if len(s.opts.Addrs) > 0 { + s.address = s.opts.Addrs + } + // extract the client from the context, fallback to grpc var cli client.Client if c, ok := s.opts.Context.Value(clientKey{}).(client.Client); ok {