mocks the pool interface with a direct dialer
(id proto.NodeID)
| 80 | type nilPool struct{} // mocks the pool interface with a direct dialer |
| 81 | |
| 82 | func (p *nilPool) Get(id proto.NodeID) (Client, error) { |
| 83 | return p.GetEx(id, false) |
| 84 | } |
| 85 | |
| 86 | func (p *nilPool) GetEx(id proto.NodeID, isAnonymous bool) (Client, error) { |
| 87 | conn, err := Dial(id) |