MCPcopy
hub / github.com/redis/go-redis / slaves

Method slaves

osscluster_test.go:41–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39}
40
41func (s *clusterScenario) slaves() []*redis.Client {
42 result := make([]*redis.Client, 3)
43 for pos, port := range s.ports[3:] {
44 result[pos] = s.clients[port]
45 }
46 return result
47}
48
49func (s *clusterScenario) addrs() []string {
50 addrs := make([]string, len(s.ports))

Callers 1

configureClusterTopologyFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected