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

Function NewPersistentCaller

rpc/mux/wrapper.go:79–83  ·  view source on GitHub ↗

NewPersistentCaller 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.

(target proto.NodeID)

Source from the content-addressed store, hash-verified

77// IMPORTANT: If a PersistentCaller is firstly used by a DHT.Ping, which is an anonymous
78// ETLS connection. It should not be used by any other RPC except DHT.Ping.
79func NewPersistentCaller(target proto.NodeID) *PersistentCaller {
80 return &PersistentCaller{
81 PersistentCaller: rpc.NewPersistentCallerWithPool(defaultPool, target),
82 }
83}
84
85// New returns brand new persistent caller.
86func (c *PersistentCaller) New() rpc.PCaller {

Callers 6

newConnFunction · 0.92
getNodePCallerFunction · 0.92
NewMethod · 0.70
TestNewPersistentCallerFunction · 0.70

Calls 1