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

Method getPool

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

Source from the content-addressed store, hash-verified

143}
144
145func (p *Pools) getPool(addr string) (*Pool, bool) {
146 p.RLock()
147 defer p.RUnlock()
148 existingPool, has := p.all[addr]
149 return existingPool, has
150}
151
152// Connect creates a Pool instance for the node with the given address or returns the existing one.
153func (p *Pools) Connect(addr string, tlsClientConf *tls.Config) *Pool {

Callers 1

ConnectMethod · 0.95

Calls 2

RLockMethod · 0.80
RUnlockMethod · 0.80

Tested by

no test coverage detected