mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 03:12:24 -05:00
[performance] remove throttling timers (#1466)
* remove throttling timers, support setting retry-after, use retry-after in transport * remove unused variables * add throttling-retry-after to cmd flags * update envparsing to include new throttling-retry-after * update example config to include retry-after documentation * also support retry-after formatted as date-time, ensure max backoff time --------- Signed-off-by: kim <grufwub@gmail.com>
This commit is contained in:
parent
6ac1dda96f
commit
70739d32cc
8 changed files with 98 additions and 62 deletions
|
|
@ -760,3 +760,10 @@ advanced-rate-limit-requests: 300
|
|||
# Examples: [8, 4, 9, 0]
|
||||
# Default: 8
|
||||
advanced-throttling-multiplier: 8
|
||||
|
||||
# Duration. Time period to use as the "retry-after" header value in response to throttled requests.
|
||||
# Minimum resolution is 1 second.
|
||||
#
|
||||
# Examples: [30s, 10s, 5s, 1m]
|
||||
# Default: 30s
|
||||
advanced-throttling-retry-after: "30s"
|
||||
Loading…
Add table
Add a link
Reference in a new issue