Skip to content

Commit

Permalink
added temporary hardcoded timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
thejoeker12 committed Feb 28, 2025
1 parent a99a2c8 commit df4a05d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions httpclient/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,11 @@ func (c *Client) request(ctx context.Context, method, endpoint string, body inte
startTime := time.Now()

req = req.WithContext(ctx)

// TEMPORARY HARD CODED TIMEOUT
c.http.Timeout = 3 * time.Second
////////////////////////////////

resp, err := c.http.Do(req)
if err != nil {
c.Sugar.Error("Failed to send request", zap.String("method", method), zap.String("endpoint", endpoint), zap.Error(err))
Expand Down

0 comments on commit df4a05d

Please sign in to comment.