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

Method Remove

rpc/pool.go:185–192  ·  view source on GitHub ↗

Remove the node freelist in the pool.

(id proto.NodeID)

Source from the content-addressed store, hash-verified

183
184// Remove the node freelist in the pool.
185func (p *ClientPool) Remove(id proto.NodeID) {
186 v, ok := p.nodeFreeLists.Load(id)
187 if ok {
188 _ = v.(*freelist).close()
189 p.nodeFreeLists.Delete(id)
190 }
191 return
192}
193
194// Close closes all FreeLists in the pool.
195func (p *ClientPool) Close() error {

Callers 15

TestRPCComponentsFunction · 0.95
TestChainFunction · 0.45
TestMetaStateFunction · 0.45
DropMethod · 0.45
TestFullProcessFunction · 0.45
CopyFileFunction · 0.45
TestCopyFileFunction · 0.45
TestStartStopProfileFunction · 0.45
TestRuntimeFunction · 0.45
BenchmarkRuntimeFunction · 0.45
teardownChainFunction · 0.45
TestStateFunction · 0.45

Calls 2

DeleteMethod · 0.80
closeMethod · 0.45

Tested by 14

TestRPCComponentsFunction · 0.76
TestChainFunction · 0.36
TestMetaStateFunction · 0.36
TestFullProcessFunction · 0.36
TestCopyFileFunction · 0.36
TestStartStopProfileFunction · 0.36
TestRuntimeFunction · 0.36
BenchmarkRuntimeFunction · 0.36
teardownChainFunction · 0.36
TestStateFunction · 0.36
TestSerializableStateFunction · 0.36
TestStorageFunction · 0.36