Count returns how many clients are in the cache
()
| 147 | |
| 148 | // Count returns how many clients are in the cache |
| 149 | func (p *Pool) Count() int { |
| 150 | p.RLock() |
| 151 | defer p.RUnlock() |
| 152 | return len(p.clients) |
| 153 | } |
| 154 | |
| 155 | func (p *Pool) removeStaleClients() { |
| 156 | // Only if service discovery has been configured. |
no outgoing calls