MCPcopy Index your code
hub / github.com/CodisLabs/codis / KeepAlive

Method KeepAlive

pkg/proxy/router.go:124–133  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122}
123
124func (s *Router) KeepAlive() error {
125 s.mu.RLock()
126 defer s.mu.RUnlock()
127 if s.closed {
128 return ErrClosedRouter
129 }
130 s.pool.primary.KeepAlive()
131 s.pool.replica.KeepAlive()
132 return nil
133}
134
135func (s *Router) isOnline() bool {
136 return s.online && !s.closed

Callers 1

keepAliveMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected