Remove rpc Sync method from registry handler

This commit is contained in:
Milos Gajdos
2019-09-24 10:41:48 +01:00
parent 61ee436cc4
commit ccda1d3559
4 changed files with 41 additions and 152 deletions

View File

@@ -74,14 +74,3 @@ func (r *Registry) Watch(ctx context.Context, req *pb.WatchRequest, rsp pb.Regis
return nil
}
func (r *Registry) Sync(ctx context.Context, req *pb.SyncRequest, rsp *pb.SyncResponse) error {
services, err := r.Registry.ListServices()
if err != nil {
return errors.InternalServerError("go.micro.registry", err.Error())
}
for _, srv := range services {
rsp.Services = append(rsp.Services, service.ToProto(srv))
}
return nil
}