Skip to content

Commit

Permalink
Merge branch 'master' into registy-not-found
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-toogood committed May 14, 2020
2 parents 0d72503 + ef43f01 commit 56f2810
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions registry/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 56f2810

Please sign in to comment.