gmcquillan / django-brake

Django Brake - a versatile ratelimiting app for Django.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Small ratelimit when using utils.get_limit

larchchen opened this issue · comments

Hi,

I found out that if I want use utils.get_limits to set small ratelimit e.g. 1/m, 2/5m, etc. It would not work because at line 16 count += 10 it assume the limits will increase exactly 10 per period.

Thanks,
Lin

Thanks, I'll check this out.

On Tue, Aug 30, 2016 at 6:57 AM, Lin Chen notifications@github.com wrote:

Hi,

I found out that if I want use utils.get_limits to set small ratelimit
e.g. 1/m, 2/5m, etc. It would not work because at line 16 count += 10 it
assume the limits will increase exactly 10 per period.

Thanks,
Lin


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#33, or mute the thread
https://github.com/notifications/unsubscribe-auth/AATHHNSvb7KM5AKWFP16NiU8w0h5r6-Yks5qlDatgaJpZM4Jwjg0
.

Fixed in #34