Skip to content

Commit

Permalink
Update victorops.go
Browse files Browse the repository at this point in the history
timeout fix
  • Loading branch information
kevalds51 authored Mar 10, 2022
1 parent dd490c5 commit dea8ba8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion victorops/victorops.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"io/ioutil"
"net/http"
"net/http/httputil"
"time"
)

// Client is the main client for interacting with victorops
Expand Down Expand Up @@ -84,7 +85,7 @@ func (c Client) makePublicAPICall(method string, endpoint string, requestBody io

// NewClient creates a new VictorOps client
func NewClient(apiID string, apiKey string, publicBaseURL string) *Client {
return NewConfigurableClient(apiID, apiKey, publicBaseURL, http.Client{Timeout: 30})
return NewConfigurableClient(apiID, apiKey, publicBaseURL, http.Client{Timeout: time.Second * 30})
}

// NewConfigurableClient creates a new VictorOps client with ClientArgs struct
Expand Down

0 comments on commit dea8ba8

Please sign in to comment.