From 5121f6c7c20796f1b0bb2633c46c4c012f2ecbbd Mon Sep 17 00:00:00 2001 From: Nicolas Constant Date: Fri, 10 Sep 2021 01:21:40 -0400 Subject: [PATCH] disabling extra awaiter on user retrieval --- .../Processors/RetrieveTwitterUsersProcessor.cs | 8 ++++---- src/BirdsiteLive/BirdsiteLive.csproj | 2 +- src/BirdsiteLive/appsettings.json | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/BirdsiteLive.Pipeline/Processors/RetrieveTwitterUsersProcessor.cs b/src/BirdsiteLive.Pipeline/Processors/RetrieveTwitterUsersProcessor.cs index 4e6b693..973b672 100644 --- a/src/BirdsiteLive.Pipeline/Processors/RetrieveTwitterUsersProcessor.cs +++ b/src/BirdsiteLive.Pipeline/Processors/RetrieveTwitterUsersProcessor.cs @@ -57,10 +57,10 @@ namespace BirdsiteLive.Pipeline.Processors var splitCount = splitUsers.Count(); if (splitCount < 15) await Task.Delay((15 - splitCount) * WaitFactor, ct); //Always wait 15min - // Extra wait time to fit 100.000/day limit - var extraWaitTime = (int)Math.Ceiling((60 / ((100000d / 24) / userCount)) - 15); - if (extraWaitTime < 0) extraWaitTime = 0; - await Task.Delay(extraWaitTime * 1000, ct); + //// Extra wait time to fit 100.000/day limit + //var extraWaitTime = (int)Math.Ceiling((60 / ((100000d / 24) / userCount)) - 15); + //if (extraWaitTime < 0) extraWaitTime = 0; + //await Task.Delay(extraWaitTime * 1000, ct); } catch (Exception e) { diff --git a/src/BirdsiteLive/BirdsiteLive.csproj b/src/BirdsiteLive/BirdsiteLive.csproj index d61d174..3b07184 100644 --- a/src/BirdsiteLive/BirdsiteLive.csproj +++ b/src/BirdsiteLive/BirdsiteLive.csproj @@ -4,7 +4,7 @@ netcoreapp3.1 d21486de-a812-47eb-a419-05682bb68856 Linux - 0.18.1 + 0.18.2 diff --git a/src/BirdsiteLive/appsettings.json b/src/BirdsiteLive/appsettings.json index d37ee5e..45f2b08 100644 --- a/src/BirdsiteLive/appsettings.json +++ b/src/BirdsiteLive/appsettings.json @@ -20,7 +20,7 @@ "AdminEmail": "me@domain.name", "ResolveMentionsInProfiles": true, "PublishReplies": false, - "MaxUsersCapacity": 1500, + "MaxUsersCapacity": 1000, "UnlistedTwitterAccounts": null, "SensitiveTwitterAccounts": null },