MCPcopy
hub / github.com/dgraph-io/dgraph / SetUnhealthy

Method SetUnhealthy

conn/pool.go:227–231  ·  view source on GitHub ↗

SetUnhealthy marks a pool as unhealthy.

()

Source from the content-addressed store, hash-verified

225
226// SetUnhealthy marks a pool as unhealthy.
227func (p *Pool) SetUnhealthy() {
228 p.Lock()
229 defer p.Unlock()
230 p.lastEcho = time.Time{}
231}
232
233func (p *Pool) listenToHeartbeat() error {
234 conn := p.Get()

Callers 1

doSendMessageMethod · 0.80

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected