NOClientPool defines the node-oriented client pool interface.
| 33 | |
| 34 | // NOClientPool defines the node-oriented client pool interface. |
| 35 | type NOClientPool interface { |
| 36 | Get(remote proto.NodeID) (Client, error) |
| 37 | GetEx(remote proto.NodeID, isAnonymous bool) (Client, error) |
| 38 | Close() error |
| 39 | } |
| 40 | |
| 41 | // DialToNodeWithPool ties use connection in pool, if fails then connects to the node with nodeID. |
| 42 | func DialToNodeWithPool(pool NOClientPool, nodeID proto.NodeID, isAnonymous bool) (Client, error) { |
no outgoing calls
no test coverage detected