func NewCandidates(stores []*core.StoreInfo) *StoreCandidates {
	return &StoreCandidates{Stores: stores}
}
NewCandidates creates StoreCandidates with store list.
package filter
import (
	"math/rand"
	"sort"
	"github.com/tikv/pd/server/config"
	"github.com/tikv/pd/server/core"
)
type StoreCandidates struct {
	Stores []*core.StoreInfo
}