Closed abersheeran closed 3 years ago
I havent gone deep into it but and at first sight this looks good, except I think the retry-after is not correct on blocked routes: if I put a breakpoint here on line 134: https://github.com/abersheeran/asgi-ratelimit/blob/ee5671056911474b4f4a10fddaf27326053039c8/tests/backends/test_redis.py#L131-L134 I'm blocked for 5s so I would expect a retry-after: 5 and I have a 1
@euri10 I fixed it.
@euri10 Can you implement Retry-After for SlidingRedisBackend when you are free?
@euri10 Can you implement Retry-After for SlidingRedisBackend when you are free?
yes, will try over this week-end !
I feel maybe we should add some tests on it, but overall this LGTM!
I agree. I will add more tests.
Closed #18