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

Method RewatchSentinels

pkg/proxy/proxy.go:299–309  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

297}
298
299func (s *Proxy) RewatchSentinels() error {
300 s.mu.Lock()
301 defer s.mu.Unlock()
302 if s.closed {
303 return ErrClosedProxy
304 }
305 log.Warnf("[%p] rewatch sentinels = %v", s, s.ha.servers)
306
307 s.rewatchSentinels(s.ha.servers)
308 return nil
309}
310
311func (s *Proxy) rewatchSentinels(servers []string) {
312 if s.ha.monitor != nil {

Callers

nothing calls this directly

Calls 2

rewatchSentinelsMethod · 0.95
WarnfMethod · 0.80

Tested by

no test coverage detected