Aligned API call rate limit with server default.
This commit is contained in:
parent
9fb575bb2f
commit
55dad3fa32
|
@ -29,7 +29,8 @@ URL_BLOCKLIST_MAXSIZE = 1024 ** 3
|
||||||
REQUEST_TIMEOUT = 30
|
REQUEST_TIMEOUT = 30
|
||||||
|
|
||||||
# Time to wait between instance API calls to we don't melt them
|
# Time to wait between instance API calls to we don't melt them
|
||||||
API_CALL_DELAY = 3600 / 300 # 300 API calls per hour
|
# The default Mastodon rate limit is 300 calls per 5 minutes
|
||||||
|
API_CALL_DELAY = 5 * 60 / 300 # 300 calls per 5 minutes
|
||||||
|
|
||||||
# We always import the domain and the severity
|
# We always import the domain and the severity
|
||||||
IMPORT_FIELDS = ['domain', 'severity']
|
IMPORT_FIELDS = ['domain', 'severity']
|
||||||
|
|
Loading…
Reference in New Issue