Fill httpTransport field

This commit is contained in:
Tulir Asokan 2024-03-05 19:31:12 +02:00
parent 90b5346763
commit e5b70c0b18

View file

@ -103,8 +103,10 @@ func NewClient(authData *AuthData, logger zerolog.Logger) *Client {
AuthData: authData,
Logger: logger,
sessionHandler: sessionHandler,
http: &http.Client{Transport: transport, Timeout: 2 * time.Minute},
lphttp: &http.Client{Transport: transport, Timeout: 30 * time.Minute},
httpTransport: transport,
http: &http.Client{Transport: transport, Timeout: 2 * time.Minute},
lphttp: &http.Client{Transport: transport, Timeout: 30 * time.Minute},
pingShortCircuit: make(chan struct{}),
}