def get_maxrate(ratelimits, size):
    last_func = None
    if size:
        size = int(size)
        for ratesize, rate, func in ratelimits:
            if size < ratesize:
                break
            last_func = func
        if last_func:
            return last_func(size)
    return None
Returns number of requests allowed per second for given size.
dataset/ETHPy150Open openstack/swift/swift/common/middleware/ratelimit.py/get_maxrate