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)
| 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. |
| 79 | func NewPersistentCaller(target proto.NodeID) *PersistentCaller { |
| 80 | return &PersistentCaller{ |
| 81 | PersistentCaller: rpc.NewPersistentCallerWithPool(defaultPool, target), |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | // New returns brand new persistent caller. |
| 86 | func (c *PersistentCaller) New() rpc.PCaller { |