Skip to content

Commit 7ccdc0d

Browse files
authored
Merge pull request #31 from elobommart/master
remove minimum interval requirements
2 parents ad1cdd1 + 25fdd63 commit 7ccdc0d

File tree

5 files changed

+0
-15
lines changed

5 files changed

+0
-15
lines changed

healthcheck/command.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

healthcheck/dns.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

healthcheck/http.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

healthcheck/tcp.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

healthcheck/tls.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)