Fix breaking api changes
This commit is contained in:
		| @@ -44,7 +44,7 @@ func (r *Router) Lookup(ctx context.Context, req *pb.LookupRequest, resp *pb.Loo | |||||||
| 	return nil | 	return nil | ||||||
| } | } | ||||||
|  |  | ||||||
| func (r *Router) Advertise(ctx context.Context, req *pb.AdvertiseRequest, stream pb.Router_AdvertiseStream) error { | func (r *Router) Advertise(ctx context.Context, req *pb.Request, stream pb.Router_AdvertiseStream) error { | ||||||
| 	advertChan, err := r.Router.Advertise() | 	advertChan, err := r.Router.Advertise() | ||||||
| 	if err != nil { | 	if err != nil { | ||||||
| 		return errors.InternalServerError("go.micro.router", "failed to get adverts: %v", err) | 		return errors.InternalServerError("go.micro.router", "failed to get adverts: %v", err) | ||||||
|   | |||||||
| @@ -145,7 +145,7 @@ func (s *svc) Advertise() (<-chan *router.Advert, error) { | |||||||
|  |  | ||||||
| 	switch status.Code { | 	switch status.Code { | ||||||
| 	case router.Running, router.Advertising: | 	case router.Running, router.Advertising: | ||||||
| 		stream, err := s.router.Advertise(context.Background(), &pb.AdvertiseRequest{}, s.callOpts...) | 		stream, err := s.router.Advertise(context.Background(), &pb.Request{}, s.callOpts...) | ||||||
| 		if err != nil { | 		if err != nil { | ||||||
| 			return nil, fmt.Errorf("failed getting advert stream: %s", err) | 			return nil, fmt.Errorf("failed getting advert stream: %s", err) | ||||||
| 		} | 		} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user