Count returns how many clients are in the cache
()
| 230 | |
| 231 | // Count returns how many clients are in the cache |
| 232 | func (p *Pool) Count() int { |
| 233 | p.RLock() |
| 234 | defer p.RUnlock() |
| 235 | return len(p.members) |
| 236 | } |
| 237 | |
| 238 | func (p *Pool) removeStaleClients() { |
| 239 | // Only if service discovery has been configured. |
no outgoing calls