Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is.
Duplicate default client.
|
defaultClient = &Client{hc: &http.Client{ |
|
Transport: &http.Transport{ |
|
Dial: (&net.Dialer{ |
|
Timeout: 2 * time.Second, |
|
KeepAlive: 30 * time.Second, |
|
}).Dial, |
|
}, |
|
}} |
|
subscribeClient = &Client{hc: &http.Client{ |
|
Transport: &http.Transport{ |
|
Dial: (&net.Dialer{ |
|
Timeout: 2 * time.Second, |
|
KeepAlive: 30 * time.Second, |
|
}).Dial, |
|
}, |
|
}} |
It seems that ResponseHeaderTimeout has been deleted and has the same setting.
fbf2f51
Describe the solution you'd like
A clear and concise description of what you want to happen. What should the API be? How would you use it?
Delete subscribeClient and unify to defaultClient.
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is.
Duplicate default client.
google-cloud-go/compute/metadata/metadata.go
Lines 65 to 80 in 22aa4fb
It seems that ResponseHeaderTimeout has been deleted and has the same setting.
fbf2f51
Describe the solution you'd like
A clear and concise description of what you want to happen. What should the API be? How would you use it?
Delete subscribeClient and unify to defaultClient.