MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / remove

Method remove

conn/pool.go:133–143  ·  view source on GitHub ↗
(addr string)

Source from the content-addressed store, hash-verified

131}
132
133func (p *Pools) remove(addr string) {
134 p.Lock()
135 defer p.Unlock()
136 pool, ok := p.all[addr]
137 if !ok {
138 return
139 }
140 glog.Warningf("CONN: Disconnecting from %s\n", addr)
141 delete(p.all, addr)
142 pool.shutdown()
143}
144
145func (p *Pools) getPool(addr string) (*Pool, bool) {
146 p.RLock()

Callers 2

RemoveInvalidMethod · 0.95
RemoveMethod · 0.95

Calls 4

WarningfMethod · 0.80
shutdownMethod · 0.80
LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected