fn validate_ranges(
ranges: Vec<Range<u64>>,
limit: usize,
) -> Result<Vec<Range<u64>>>Expand description
Check a ranges request against the same per-request object limit the range endpoints enforce, and convert it for the data source.
Bounding the total heights also bounds how many ranges a request may carry, since every range covers at least one height.