1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-09-17 15:38:46 +00:00
arikawa/api/rate
Maximilian von Lindern 0a8b24339b
API: Added timeout if deadline is after rate limit (#173)
* Rate: don't sleep if sleep exceeds context deadline

* Httputil: add Client.Timeout

* Bot: set default API timeout to 5 minutes

* Rate: reduce calls to time.Now in Acquire

* API: Optimize to use deadline instead of recalculating

Co-authored-by: diamondburned <datutbrus@gmail.com>
2020-11-25 12:08:42 -08:00
..
emoji.go API: Added reactions into rate limit parsers 2020-02-07 08:31:10 -08:00
emoji_test.go API: Added AllowedMentions and more tests 2020-04-19 16:35:37 -07:00
majors.go API: Improved the rate limit parser 2020-02-07 08:37:01 -08:00
majors_test.go API: Added AllowedMentions and more tests 2020-04-19 16:35:37 -07:00
rate.go API: Added timeout if deadline is after rate limit (#173) 2020-11-25 12:08:42 -08:00
rate_test.go API: Fixed rate limiting tests 2020-10-28 15:23:47 -07:00