Fix service registration with registry service
This commit is contained in:
@@ -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
|
||||
|
@@ -82,6 +82,7 @@ func ToProto(s *registry.Service) *pb.Service {
|
||||
Metadata: s.Metadata,
|
||||
Endpoints: endpoints,
|
||||
Nodes: nodes,
|
||||
Options: new(pb.Options),
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user