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

Function newClusterNodes

osscluster.go:626–632  ·  view source on GitHub ↗
(opt *ClusterOptions)

Source from the content-addressed store, hash-verified

624}
625
626func newClusterNodes(opt *ClusterOptions) *clusterNodes {
627 return &clusterNodes{
628 opt: opt,
629 addrs: opt.Addrs,
630 nodes: make(map[string]*clusterNode),
631 }
632}
633
634func (c *clusterNodes) Close() error {
635 c.mu.Lock()

Callers 4

NewClusterClientFunction · 0.85
internal_test.goFile · 0.85
TestNodeAddressFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestNodeAddressFunction · 0.68