From 532a8ba8b483ca6f17194e4c7e842c08d71dd40a Mon Sep 17 00:00:00 2001 From: "diamondburned (Forefront)" Date: Sun, 19 Jan 2020 09:52:43 -0800 Subject: [PATCH] Apparently I don't need reaction rate limits --- api/rate/rate.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/api/rate/rate.go b/api/rate/rate.go index 8162de1..79dbdf3 100644 --- a/api/rate/rate.go +++ b/api/rate/rate.go @@ -51,12 +51,9 @@ type bucket struct { func NewLimiter() *Limiter { return &Limiter{ - global: new(int64), - buckets: sync.Map{}, - CustomLimits: []*CustomRateLimit{{ - Contains: "/reactions/", - Reset: 200 * time.Millisecond, - }}, + global: new(int64), + buckets: sync.Map{}, + CustomLimits: []*CustomRateLimit{}, } }