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,6 +103,8 @@ func NewClient(authData *AuthData, logger zerolog.Logger) *Client {
AuthData: authData, AuthData: authData,
Logger: logger, Logger: logger,
sessionHandler: sessionHandler, sessionHandler: sessionHandler,
httpTransport: transport,
http: &http.Client{Transport: transport, Timeout: 2 * time.Minute}, http: &http.Client{Transport: transport, Timeout: 2 * time.Minute},
lphttp: &http.Client{Transport: transport, Timeout: 30 * time.Minute}, lphttp: &http.Client{Transport: transport, Timeout: 30 * time.Minute},