Closed mrcatspoon closed 2 years ago
Hi! I’ve made some small improvements:
next(filter(…))
any()
True
Include at https://github.com/abersheeran/asgi-ratelimit/pull/44
Hi! I’ve made some small improvements:
next(filter(…))
. In this case we won’t iterate over every rule and really return the first rule matchedany()
. In this caseany()
will returnTrue
when it founds first required attribute in rule object