Lines Matching refs:shardCount
53 var shardCount = flag.Int("shard-count", 1, "split the products into multiple shards (to spread the… var
306 } else if *shardCount < 1 {
307 log.Fatalf("--shard-count value must be >= 1, not %d\n", *shardCount)
308 } else if *shard > *shardCount {
310 *shardCount)
311 } else if *shardCount > 1 {
312 finalProductsList = splitList(finalProductsList, *shardCount)[*shard-1]
514 func splitList(list []string, shardCount int) (ret [][]string) {
515 each := len(list) / shardCount
516 extra := len(list) % shardCount
517 for i := 0; i < shardCount; i++ {