Update pkg/doctor/doctor.go
Co-authored-by: John Gibb <johngibb@gmail.com>
This commit is contained in:
parent
587a90228e
commit
8770a15fa6
1 changed files with 1 additions and 1 deletions
|
|
@ -252,7 +252,7 @@ func (d *Doctor) testProviderConnectivity() {
|
||||||
}
|
}
|
||||||
|
|
||||||
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
|
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
|
||||||
req, _ := http.NewRequestWithContext(ctx, "GET", url, nil)
|
req, _ := http.NewRequestWithContext(ctx, http.MethodGET, url, nil)
|
||||||
resp, err := client.Do(req)
|
resp, err := client.Do(req)
|
||||||
cancel()
|
cancel()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue