Skip to content

Commit

Permalink
DefaultDNSCacheDuration :: Changed to var
Browse files Browse the repository at this point in the history
  • Loading branch information
eeertekin authored Jun 14, 2021
1 parent b8b065b commit d836eac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tcpdialer.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ type tcpAddrEntry struct {

// DefaultDNSCacheDuration is the duration for caching resolved TCP addresses
// by Dial* functions.
const DefaultDNSCacheDuration = time.Minute
var DefaultDNSCacheDuration = time.Minute

func (d *TCPDialer) tcpAddrsClean() {
expireDuration := 2 * DefaultDNSCacheDuration
Expand Down

0 comments on commit d836eac

Please sign in to comment.