(host string)
| 52 | } |
| 53 | |
| 54 | func (c *dnsCache) forget(host string) { |
| 55 | c.mu.Lock() |
| 56 | delete(c.entries, host) |
| 57 | c.mu.Unlock() |
| 58 | } |
| 59 | |
| 60 | // dialResult is the outcome of dialWithDNSCache. The timing fields are always |
| 61 | // populated (the cost is two time.Now calls) so callers can log them on demand. |