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

Method Get

rpc/pool.go:166–169  ·  view source on GitHub ↗

Get returns existing freelist to the node, if not exist try best to create one.

(id proto.NodeID)

Source from the content-addressed store, hash-verified

164
165// Get returns existing freelist to the node, if not exist try best to create one.
166func (p *ClientPool) Get(id proto.NodeID) (cli Client, err error) {
167 list, _ := p.loadFreeList(id)
168 return list.get()
169}
170
171// GetEx returns a client with an one-off connection if it's anonymous,
172// otherwise returns existing freelist with Get.

Callers 1

GetExMethod · 0.95

Calls 2

loadFreeListMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected