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

Function NewPersistentCallerWithPool

rpc/pcaller.go:44–49  ·  view source on GitHub ↗

NewPersistentCallerWithPool returns a persistent RPCCaller. IMPORTANT: If a PersistentCaller is firstly used by a DHT.Ping, which is an anonymous ETLS connection. It should not be used by any other RPC except DHT.Ping.

(pool NOClientPool, target proto.NodeID)

Source from the content-addressed store, hash-verified

42// IMPORTANT: If a PersistentCaller is firstly used by a DHT.Ping, which is an anonymous
43// ETLS connection. It should not be used by any other RPC except DHT.Ping.
44func NewPersistentCallerWithPool(pool NOClientPool, target proto.NodeID) *PersistentCaller {
45 return &PersistentCaller{
46 pool: pool,
47 TargetID: target,
48 }
49}
50
51func (c *PersistentCaller) initClient(isAnonymous bool) (err error) {
52 c.Lock()

Callers 5

NewPersistentCallerFunction · 0.92
NewPersistentCallerFunction · 0.85
testPCallerFunction · 0.85
BenchmarkRPCComponentsFunction · 0.85
TestRPCComponentsFunction · 0.85

Calls

no outgoing calls

Tested by 3

testPCallerFunction · 0.68
BenchmarkRPCComponentsFunction · 0.68
TestRPCComponentsFunction · 0.68