This commit is contained in:
Collin M. Barrett 2019-06-29 10:08:14 -05:00
parent 56f7c081ae
commit ce6eeb46d6

View file

@ -44,6 +44,7 @@ protected override async Task Handle(Command request, CancellationToken cancella
}
//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)