MCPcopy
hub / github.com/CodisLabs/codis / GetSentinels

Method GetSentinels

pkg/proxy/proxy.go:277–284  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

275}
276
277func (s *Proxy) GetSentinels() ([]string, map[int]string) {
278 s.mu.Lock()
279 defer s.mu.Unlock()
280 if s.closed {
281 return nil, nil
282 }
283 return s.ha.servers, s.ha.masters
284}
285
286func (s *Proxy) SetSentinels(servers []string) error {
287 s.mu.Lock()

Callers 1

StatsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected