Skip to content

Commit df4a05d

Browse files
committed
added temporary hardcoded timeout
1 parent a99a2c8 commit df4a05d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

httpclient/request.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,11 @@ func (c *Client) request(ctx context.Context, method, endpoint string, body inte
271271
startTime := time.Now()
272272

273273
req = req.WithContext(ctx)
274+
275+
// TEMPORARY HARD CODED TIMEOUT
276+
c.http.Timeout = 3 * time.Second
277+
////////////////////////////////
278+
274279
resp, err := c.http.Do(req)
275280
if err != nil {
276281
c.Sugar.Error("Failed to send request", zap.String("method", method), zap.String("endpoint", endpoint), zap.Error(err))

0 commit comments

Comments
 (0)