(host, ip string)
| 46 | } |
| 47 | |
| 48 | func (c *dnsCache) set(host, ip string) { |
| 49 | c.mu.Lock() |
| 50 | c.entries[host] = dnsEntry{ip: ip, expires: time.Now().Add(dnsCacheTTL)} |
| 51 | c.mu.Unlock() |
| 52 | } |
| 53 | |
| 54 | func (c *dnsCache) forget(host string) { |
| 55 | c.mu.Lock() |
no outgoing calls
no test coverage detected