remove last "retry-period" occurences
This commit is contained in:
parent
a70f1ac424
commit
22ac3764e4
@ -63,7 +63,7 @@ func (c *Conf) setup() {
|
||||
// Parse Duration
|
||||
if filter.RetryPeriod == "" {
|
||||
if filter.Retry > 1 {
|
||||
logger.Fatalln("Bad configuration: retry but no retry-duration in", stream.name, ".", filter.name)
|
||||
logger.Fatalln("Bad configuration: retry but no retryduration in", stream.name, ".", filter.name)
|
||||
}
|
||||
} else {
|
||||
retryDuration, err := time.ParseDuration(filter.RetryPeriod)
|
||||
|
@ -15,7 +15,7 @@ streams:
|
||||
regex:
|
||||
- '^found <num>$'
|
||||
retry: 50
|
||||
retry-period: 1m
|
||||
retryperiod: 1m
|
||||
actions:
|
||||
damn:
|
||||
cmd: [ "echo", "<num>" ]
|
||||
@ -30,7 +30,7 @@ streams:
|
||||
regex:
|
||||
- '^prout <num>$'
|
||||
retry: 50
|
||||
retry-period: 1m
|
||||
retryperiod: 1m
|
||||
actions:
|
||||
damn:
|
||||
cmd: [ "echo", "<num>" ]
|
||||
@ -45,7 +45,7 @@ streams:
|
||||
regex:
|
||||
- '^nanana <num>$'
|
||||
retry: 50
|
||||
retry-period: 2m
|
||||
retryperiod: 2m
|
||||
actions:
|
||||
damn:
|
||||
cmd: [ "true" ]
|
||||
@ -60,7 +60,7 @@ streams:
|
||||
regex:
|
||||
- '^nomatch <num>$'
|
||||
retry: 50
|
||||
retry-period: 2m
|
||||
retryperiod: 2m
|
||||
actions:
|
||||
damn:
|
||||
cmd: [ "echo", "<num>" ]
|
||||
|
Loading…
Reference in New Issue
Block a user