MCPcopy Create free account
hub / github.com/dgraph-io/dgraph / Remove

Method Remove

conn/pool.go:129–131  ·  view source on GitHub ↗

Remove disconnects and removes the pool for addr. It is a no-op if addr is not in the pool. Used to clean up stale connections after an address change.

(addr string)

Source from the content-addressed store, hash-verified

127// Remove disconnects and removes the pool for addr. It is a no-op if addr is
128// not in the pool. Used to clean up stale connections after an address change.
129func (p *Pools) Remove(addr string) {
130 p.remove(addr)
131}
132
133func (p *Pools) remove(addr string) {
134 p.Lock()

Callers

nothing calls this directly

Calls 1

removeMethod · 0.95

Tested by

no test coverage detected