Skip to content

compute/metadata: duplicate default client #1795

@178inaba

Description

@178inaba

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.

Metadata

Metadata

Assignees

Labels

api: computeIssues related to the Compute Engine API.type: cleanupAn internal cleanup or hygiene concern.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions