Close closes the stream and RPC client.
()
| 109 | |
| 110 | // Close closes the stream and RPC client. |
| 111 | func (c *PersistentCaller) Close() { |
| 112 | c.Lock() |
| 113 | defer c.Unlock() |
| 114 | if c.client != nil { |
| 115 | _ = c.client.Close() |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | // Target returns the request target for logging purpose. |
| 120 | func (c *PersistentCaller) Target() string { |