some rate limiting
This commit is contained in:
parent
1d38081a6a
commit
2290c2a121
2 changed files with 3 additions and 0 deletions
|
@ -74,6 +74,7 @@ namespace BirdsiteLive.Pipeline.Processors
|
|||
User = user
|
||||
};
|
||||
usersWtData.Add(userWtData);
|
||||
await Task.Delay(5 * 1000);
|
||||
}
|
||||
return usersWtData.ToArray();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
Reference in a new issue