This commit is contained in:
Collin M. Barrett 2019-06-30 17:47:40 -05:00
parent ef462fc79f
commit a9ea461d47

View file

@ -43,8 +43,6 @@ protected override async Task Handle(Command request, CancellationToken cancella
await downloader.Completion;
}
//https://keestalkstech.com/2017/10/linq-round-robin-ordering-based-segments/
//TODO: space out overweighted hosts throughout rather than having them all at the end of the queue
private static IEnumerable<ListInfo> ShardByHost(IEnumerable<ListInfo> listInfo)
{
return listInfo.GroupBy(l => l.ViewUrl.Host)