MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / newClient

Method newClient

rpc/pool.go:138–144  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

136}
137
138func (l *freelist) newClient() (*rpc.Client, error) {
139 conn, err := Dial(l.target)
140 if err != nil {
141 return nil, errors.Wrap(err, "dialing new connection failed")
142 }
143 return NewClient(conn), err
144}
145
146// ClientPool is the struct type of connection pool.
147type ClientPool struct {

Callers 1

getMethod · 0.95

Calls 2

NewClientFunction · 0.85
DialFunction · 0.50

Tested by

no test coverage detected