func (s *Sentinel) Slaves() ([]*Slave, error) {
	res, err := s.doUntilSuccess(func(c redis.Conn) (interface{}, error) {
		return queryForSlaves(c, s.MasterName)
	})
	if err != nil {
		return nil, err
	}
	return res.([]*Slave), nil
}
func (s *Sentinel) Slaves() ([]*Slave, error) {
	res, err := s.doUntilSuccess(func(c redis.Conn) (interface{}, error) {
		return queryForSlaves(c, s.MasterName)
	})
	if err != nil {
		return nil, err
	}
	return res.([]*Slave), nil
}
func ( s * Sentinel ) Slaves ( ) ( [ ] * Slave , error ) { res , err := s . doUntilSuccess ( func ( c redis . Conn ) ( interface { } , error ) { return queryForSlaves ( c , s . MasterName ) } ) if err != nil { return nil , err } return res . ( [ ] * Slave ) , nil }
// Slaves returns a slice with known slaves of master instance.
Slaves returns a slice with known slaves of master instance .