From e5b70c0b1802f0432f3c54e13b0b293cee98b651 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Tue, 5 Mar 2024 19:31:12 +0200 Subject: [PATCH] Fill httpTransport field --- libgm/client.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libgm/client.go b/libgm/client.go index ad1b7f3..e44039e 100644 --- a/libgm/client.go +++ b/libgm/client.go @@ -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{}), }