mirror of https://github.com/grpc/grpc-go.git
				
				
				
			
						commit
						b062a3c003
					
				| 
						 | 
				
			
			@ -82,7 +82,7 @@ func (s *routeGuideServer) GetFeature(ctx context.Context, point *pb.Point) (*pb
 | 
			
		|||
	return &pb.Feature{"", point}, nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// ListFeatures lists all features comtained within the given bounding Rectangle.
 | 
			
		||||
// ListFeatures lists all features contained within the given bounding Rectangle.
 | 
			
		||||
func (s *routeGuideServer) ListFeatures(rect *pb.Rectangle, stream pb.RouteGuide_ListFeaturesServer) error {
 | 
			
		||||
	for _, feature := range s.savedFeatures {
 | 
			
		||||
		if inRange(feature.Location, rect) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue