mirror of
https://github.com/NicolasConstant/BirdsiteLive
synced 2025-06-05 21:49:16 +02:00
dont feed pipeline if no elements
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user