PersistentCaller is a wrapper for session pooling and RPC calling.
| 31 | |
| 32 | // PersistentCaller is a wrapper for session pooling and RPC calling. |
| 33 | type PersistentCaller struct { |
| 34 | pool NOClientPool |
| 35 | client Client |
| 36 | //TargetAddr string |
| 37 | TargetID proto.NodeID |
| 38 | sync.Mutex |
| 39 | } |
| 40 | |
| 41 | // NewPersistentCallerWithPool returns a persistent RPCCaller. |
| 42 | // IMPORTANT: If a PersistentCaller is firstly used by a DHT.Ping, which is an anonymous |
nothing calls this directly
no outgoing calls
no test coverage detected