dont feed pipeline if no elements

This commit is contained in:
Nicolas Constant
2020-11-18 22:49:44 -05:00
parent b7acb4c907
commit 01337a63ec
2 changed files with 29 additions and 1 deletions

View File

@ -29,7 +29,9 @@ namespace BirdsiteLive.Pipeline.Processors
try
{
var users = await _twitterUserDal.GetAllTwitterUsersAsync();
await twitterUsersBufferBlock.SendAsync(users, ct);
if(users.Length > 0)
await twitterUsersBufferBlock.SendAsync(users, ct);
}
catch (Exception e)
{