Skip to content
This repository was archived by the owner on Mar 5, 2023. It is now read-only.

Commit a34ed50

Browse files
author
jonas747
committed
enable custom 1/1 rl for reactions
1 parent 2d8d50c commit a34ed50

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

ratelimit.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ func NewRatelimiter() *RateLimiter {
3737
numConcurrentLocks: new(int32),
3838

3939
// with higher precision ratelimit headers enabled, this is no longer needed
40-
// customRateLimits: []*customRateLimit{
41-
// &customRateLimit{
42-
// suffix: "/reactions//",
43-
// requests: 1,
44-
// reset: 250 * time.Millisecond,
45-
// },
46-
// },
40+
customRateLimits: []*customRateLimit{
41+
&customRateLimit{
42+
suffix: "/reactions//",
43+
requests: 1,
44+
reset: 1 * time.Second,
45+
},
46+
},
4747
}
4848
}
4949

0 commit comments

Comments
 (0)