()
| 297 | } |
| 298 | |
| 299 | func (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 | |
| 311 | func (s *Proxy) rewatchSentinels(servers []string) { |
| 312 | if s.ha.monitor != nil { |
nothing calls this directly
no test coverage detected