]> Cypherpunks repositories - gostls13.git/commit
net: change type of dnsConfig.timeout from int to time.Duration
authorDan Peterson <dpiddy@gmail.com>
Thu, 28 Apr 2016 12:41:32 +0000 (09:41 -0300)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 28 Apr 2016 15:13:58 +0000 (15:13 +0000)
commit9faf5cdf9d1f9050a03ae3d420768c846e54646d
treefb25c168ad5ce98fc4e9d65039c74234e277055a
parent22db3c5a62b01dba6122230aa71d35c48107c70c
net: change type of dnsConfig.timeout from int to time.Duration

Instead of keeping the desired number of seconds and converting to
time.Duration for every query, convert to time.Duration when
building the config.

Updates #15473

Change-Id: Ib24c050b593b3109011e359f4ed837a3fb45dc65
Reviewed-on: https://go-review.googlesource.com/22548
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/dnsclient_unix.go
src/net/dnsconfig_unix.go
src/net/dnsconfig_unix_test.go