refactor: provider init order

This commit is contained in:
Skyxim
2022-05-02 16:47:48 +08:00
parent 05b25c334f
commit b401da5eba
2 changed files with 21 additions and 5 deletions

View File

@ -73,7 +73,7 @@ func (h *HTTPVehicle) Read() ([]byte, error) {
transport := &http.Transport{
// from http.DefaultTransport
MaxIdleConns: 100,
IdleConnTimeout: 90 * time.Second,
IdleConnTimeout: 30 * time.Second,
TLSHandshakeTimeout: 10 * time.Second,
ExpectContinueTimeout: 1 * time.Second,
DialContext: func(ctx context.Context, network, address string) (net.Conn, error) {