Skip to content

Commit

Permalink
Merge pull request #6 from victorops/fix-default-timeout
Browse files Browse the repository at this point in the history
Update victorops.go to undo recent change to default timeout
  • Loading branch information
kevalds51 authored Mar 10, 2022
2 parents dd490c5 + dea8ba8 commit bd2ebfa
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 bd2ebfa

Please sign in to comment.