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

Method ResetClient

rpc/pcaller.go:100–108  ·  view source on GitHub ↗

ResetClient resets client.

()

Source from the content-addressed store, hash-verified

98
99// ResetClient resets client.
100func (c *PersistentCaller) ResetClient() (err error) {
101 c.Lock()
102 if c.client != nil {
103 _ = c.client.Close()
104 }
105 c.client = nil
106 c.Unlock()
107 return
108}
109
110// Close closes the stream and RPC client.
111func (c *PersistentCaller) Close() {

Callers 2

CallMethod · 0.95
TestNewPersistentCallerFunction · 0.95

Calls 1

CloseMethod · 0.65

Tested by 1

TestNewPersistentCallerFunction · 0.76