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

Method Get

conn/pool.go:212–216  ·  view source on GitHub ↗

Get returns the connection to use from the pool of connections.

()

Source from the content-addressed store, hash-verified

210
211// Get returns the connection to use from the pool of connections.
212func (p *Pool) Get() *grpc.ClientConn {
213 p.RLock()
214 defer p.RUnlock()
215 return p.conn
216}
217
218func (p *Pool) shutdown() {
219 glog.Warningf("CONN: Shutting down extra connection to %s", p.Addr)

Callers 1

listenToHeartbeatMethod · 0.95

Calls 2

RLockMethod · 0.80
RUnlockMethod · 0.80

Tested by

no test coverage detected