// Targets returns the target store id of this operator
Targets returns the target store id of this operator
// Targets returns the target store id of this operator
func (c *ConflictHandler) Targets(o *operator.Operator) []uint64 {
	targets := []uint64{}
	for i := 0; i < o.Len(); i++ {
		step := o.Step(i)
		switch s := step.(type) {
			case operator.TransferLeader:
				targets = append(targets, s.ToStore)
			case operator.AddPeer:
				targets = append(targets, s.ToStore)
			case operator.AddLightPeer:
				targets = append(targets, s.ToStore)
			default:
				continue
		}
	}
	return targets
}
func ( c * ConflictHandler ) Targets ( o * operator . Operator ) [ ] uint64 { targets := [ ] uint64 { } for i := 0 ; i < o . Len ( ) ; i ++ { step := o . Step ( i ) switch s := step . ( type ) { case operator . TransferLeader : targets = append ( targets , s . ToStore ) case operator . AddPeer : targets = append ( targets , s . ToStore ) case operator . AddLightPeer : targets = append ( targets , s . ToStore ) default : continue } } return targets }
Targets returns the target store id of this operator
Targets returns the target store id of this operator