️ Improved rate limiting

- Ensures that the target rate isn't overshot
- Aware of the requests sliding window
- Allows for a defined burst size
- Remembers the request timestamps between app restarts
This commit is contained in:
GeoffreyCoulaud
2023-06-04 17:03:59 +02:00
parent ebd22e27da
commit 7cf4d8199c
3 changed files with 127 additions and 45 deletions

View File

@@ -88,11 +88,8 @@
</choices>
<default>"a-z"</default>
</key>
<key name="steam-api-tokens" type="i">
<default>200</default>
</key>
<key name="steam-api-tokens-timestamp" type="i">
<default>0</default>
<key name="steam-limiter-tokens-history" type="s">
<default>"[]"</default>
</key>
</schema>
</schemalist>