Skip to content

Commit 471c676

Browse files
author
Francisco Souza
committed
encodingcom: use DialContext instead of Dial
Dial has been deprecated in favor of DialContext.
1 parent ffcf588 commit 471c676

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api_status.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func (s *APIStatusResponse) OK() bool {
3232
func APIStatus(endpoint string) (*APIStatusResponse, error) {
3333
client := http.Client{
3434
Transport: &http.Transport{
35-
Dial: (&net.Dialer{Timeout: time.Second}).Dial,
35+
DialContext: (&net.Dialer{Timeout: time.Second}).DialContext,
3636
ResponseHeaderTimeout: 2 * time.Second,
3737
},
3838
}

0 commit comments

Comments
 (0)