Skip to content

Commit

Permalink
fix: set timeout validation to > 0
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorEulalio committed Oct 14, 2024
1 parent 1b73fe3 commit 0e6ace6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionners/gcp/function/function.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func (a Actionner) RunWithClient(c client.GCPClientAPI, event *events.Event, act
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "Bearer "+token.AccessToken)

if parameters.GCPFunctionTimeout != 0 {
if parameters.GCPFunctionTimeout > 0 {
httpClient := http.Client{
Timeout: time.Duration(parameters.GCPFunctionTimeout),
}
Expand Down

0 comments on commit 0e6ace6

Please sign in to comment.