disabling extra awaiter on user retrieval
This commit is contained in:
parent
363481a997
commit
5121f6c7c2
3 changed files with 6 additions and 6 deletions
|
@ -57,10 +57,10 @@ namespace BirdsiteLive.Pipeline.Processors
|
||||||
var splitCount = splitUsers.Count();
|
var splitCount = splitUsers.Count();
|
||||||
if (splitCount < 15) await Task.Delay((15 - splitCount) * WaitFactor, ct); //Always wait 15min
|
if (splitCount < 15) await Task.Delay((15 - splitCount) * WaitFactor, ct); //Always wait 15min
|
||||||
|
|
||||||
// Extra wait time to fit 100.000/day limit
|
//// Extra wait time to fit 100.000/day limit
|
||||||
var extraWaitTime = (int)Math.Ceiling((60 / ((100000d / 24) / userCount)) - 15);
|
//var extraWaitTime = (int)Math.Ceiling((60 / ((100000d / 24) / userCount)) - 15);
|
||||||
if (extraWaitTime < 0) extraWaitTime = 0;
|
//if (extraWaitTime < 0) extraWaitTime = 0;
|
||||||
await Task.Delay(extraWaitTime * 1000, ct);
|
//await Task.Delay(extraWaitTime * 1000, ct);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||||
<UserSecretsId>d21486de-a812-47eb-a419-05682bb68856</UserSecretsId>
|
<UserSecretsId>d21486de-a812-47eb-a419-05682bb68856</UserSecretsId>
|
||||||
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
|
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
|
||||||
<Version>0.18.1</Version>
|
<Version>0.18.2</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
"AdminEmail": "me@domain.name",
|
"AdminEmail": "me@domain.name",
|
||||||
"ResolveMentionsInProfiles": true,
|
"ResolveMentionsInProfiles": true,
|
||||||
"PublishReplies": false,
|
"PublishReplies": false,
|
||||||
"MaxUsersCapacity": 1500,
|
"MaxUsersCapacity": 1000,
|
||||||
"UnlistedTwitterAccounts": null,
|
"UnlistedTwitterAccounts": null,
|
||||||
"SensitiveTwitterAccounts": null
|
"SensitiveTwitterAccounts": null
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue