Skip to content

Commit

Permalink
Fix bugs of execTimeout
Browse files Browse the repository at this point in the history
  • Loading branch information
STARRY-S committed Oct 5, 2023
1 parent 51782e4 commit 6f6ae57
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ func ExecWhiteListContains(s string) bool {
}

func ExecTimeout() time.Duration {
if config.ExecTimeout == 0 {
return time.Second * 30
}
return time.Duration(config.ExecTimeout) * time.Second
}

Expand Down

0 comments on commit 6f6ae57

Please sign in to comment.