File tree Expand file tree Collapse file tree 5 files changed +0
-15
lines changed
Expand file tree Collapse file tree 5 files changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -41,9 +41,6 @@ func (config *CommandHealthcheckConfiguration) Validate() error {
4141 return errors .New ("The healthcheck timeout is missing" )
4242 }
4343 if ! config .Base .OneOff {
44- if config .Base .Interval < Duration (2 * time .Second ) {
45- return errors .New ("The healthcheck interval should be greater than 2 second" )
46- }
4744 if config .Base .Interval < config .Timeout {
4845 return errors .New ("The healthcheck interval should be greater than the timeout" )
4946 }
Original file line number Diff line number Diff line change @@ -42,9 +42,6 @@ func (config *DNSHealthcheckConfiguration) Validate() error {
4242 return errors .New ("The healthcheck timeout is missing" )
4343 }
4444 if ! config .Base .OneOff {
45- if config .Base .Interval < Duration (2 * time .Second ) {
46- return errors .New ("The healthcheck interval should be greater than 2 second" )
47- }
4845 if config .Base .Interval < config .Timeout {
4946 return errors .New ("The healthcheck interval should be greater than the timeout" )
5047 }
Original file line number Diff line number Diff line change @@ -70,9 +70,6 @@ func (config *HTTPHealthcheckConfiguration) Validate() error {
7070 config .Method = "GET"
7171 }
7272 if ! config .Base .OneOff {
73- if config .Base .Interval < Duration (2 * time .Second ) {
74- return errors .New ("The healthcheck interval should be greater than 2 second" )
75- }
7673 if config .Base .Interval < config .Timeout {
7774 return errors .New ("The healthcheck interval should be greater than the timeout" )
7875 }
Original file line number Diff line number Diff line change @@ -37,9 +37,6 @@ func (config *TCPHealthcheckConfiguration) Validate() error {
3737 return errors .New ("The healthcheck timeout is missing" )
3838 }
3939 if ! config .Base .OneOff {
40- if config .Base .Interval < Duration (2 * time .Second ) {
41- return errors .New ("The healthcheck interval should be greater than 2 second" )
42- }
4340 if config .Base .Interval < config .Timeout {
4441 return errors .New ("The healthcheck interval should be greater than the timeout" )
4542 }
Original file line number Diff line number Diff line change @@ -54,9 +54,6 @@ func (config *TLSHealthcheckConfiguration) Validate() error {
5454 return errors .New ("The healthcheck timeout is missing" )
5555 }
5656 if ! config .Base .OneOff {
57- if config .Base .Interval < Duration (2 * time .Second ) {
58- return errors .New ("The healthcheck interval should be greater than 2 second" )
59- }
6057 if config .Base .Interval < config .Timeout {
6158 return errors .New ("The healthcheck interval should be greater than the timeout" )
6259 }
You can’t perform that action at this time.
0 commit comments