Fix service registration with registry service

This commit is contained in:
Asim Aslam
2020-01-18 19:53:51 +00:00
parent 31e195bac7
commit 0a37767127
6 changed files with 13 additions and 13 deletions

View File

@@ -12,7 +12,7 @@ import (
var (
// The default service name
DefaultService = "go.micro.service"
DefaultService = "go.micro.registry"
)
type serviceRegistry struct {
@@ -128,7 +128,7 @@ func (s *serviceRegistry) Watch(opts ...registry.WatchOption) (registry.Watcher,
}
func (s *serviceRegistry) String() string {
return s.name
return "service"
}
// NewRegistry returns a new registry service client

View File

@@ -82,6 +82,7 @@ func ToProto(s *registry.Service) *pb.Service {
Metadata: s.Metadata,
Endpoints: endpoints,
Nodes: nodes,
Options: new(pb.Options),
}
}