Reduce lower bound for maximum posts per minute

main
Bob Mottram 2020-04-16 15:37:01 +01:00
parent c687d0ce52
commit 3045e8c860
1 changed files with 4 additions and 4 deletions

View File

@ -2326,8 +2326,8 @@ def runInboxQueue(recentPostsCache: {}, maxRecentPosts: int,
if quotasPerMin['domains'].get(postDomain): if quotasPerMin['domains'].get(postDomain):
domainMaxPostsPerMin = \ domainMaxPostsPerMin = \
int(domainMaxPostsPerDay / (24 * 60)) int(domainMaxPostsPerDay / (24 * 60))
if domainMaxPostsPerMin < 10: if domainMaxPostsPerMin < 5:
domainMaxPostsPerMin = 10 domainMaxPostsPerMin = 5
if quotasPerMin['domains'][postDomain] > \ if quotasPerMin['domains'][postDomain] > \
domainMaxPostsPerMin: domainMaxPostsPerMin:
print('Queue: Quota per min - Maximum posts for ' + print('Queue: Quota per min - Maximum posts for ' +
@ -2367,8 +2367,8 @@ def runInboxQueue(recentPostsCache: {}, maxRecentPosts: int,
if quotasPerMin['accounts'].get(postHandle): if quotasPerMin['accounts'].get(postHandle):
accountMaxPostsPerMin = \ accountMaxPostsPerMin = \
int(accountMaxPostsPerDay / (24 * 60)) int(accountMaxPostsPerDay / (24 * 60))
if accountMaxPostsPerMin < 10: if accountMaxPostsPerMin < 5:
accountMaxPostsPerMin = 10 accountMaxPostsPerMin = 5
if quotasPerMin['accounts'][postHandle] > \ if quotasPerMin['accounts'][postHandle] > \
accountMaxPostsPerMin: accountMaxPostsPerMin:
print('Queue: Quota account posts per min -' + print('Queue: Quota account posts per min -' +