some rate limiting

This commit is contained in:
Vincent Cloutier 2022-12-18 16:12:16 -05:00
parent 1d38081a6a
commit 2290c2a121
2 changed files with 3 additions and 0 deletions

View file

@ -74,6 +74,7 @@ namespace BirdsiteLive.Pipeline.Processors
User = user
};
usersWtData.Add(userWtData);
await Task.Delay(5 * 1000);
}
return usersWtData.ToArray();
}

View file

@ -57,6 +57,8 @@ namespace BirdsiteLive.Pipeline.Processors
var now = DateTime.UtcNow;
await _twitterUserDal.UpdateTwitterUserAsync(user.Id, user.LastTweetPostedId, user.LastTweetSynchronizedForAllFollowersId, user.FetchingErrorCount, now);
}
await Task.Delay(10 * 1000);
}
return usersWtTweets.ToArray();