1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-27 17:23:00 +00:00

Gateway: Allow for more lenient gateway bursts

This commit is contained in:
diamondburned 2020-07-14 18:47:15 -07:00
parent 7572caad31
commit c1885067d7

View file

@ -7,8 +7,7 @@ import (
)
func NewSendLimiter() *rate.Limiter {
// return rate.NewLimiter(rate.Every(time.Minute), 120)
return rate.NewLimiter(rate.Every(time.Second), 2)
return rate.NewLimiter(rate.Every(time.Minute), 120)
}
func NewDialLimiter() *rate.Limiter {