From 22ac3764e4e2121350bfe0420b3af3f6a5695c00 Mon Sep 17 00:00:00 2001 From: ppom <> Date: Wed, 18 Oct 2023 12:00:00 +0200 Subject: [PATCH] remove last "retry-period" occurences --- app/startup.go | 2 +- config/heavy-load.yml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/startup.go b/app/startup.go index 7847390..8435f25 100644 --- a/app/startup.go +++ b/app/startup.go @@ -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) diff --git a/config/heavy-load.yml b/config/heavy-load.yml index 5560b35..a342a16 100644 --- a/config/heavy-load.yml +++ b/config/heavy-load.yml @@ -15,7 +15,7 @@ streams: regex: - '^found $' retry: 50 - retry-period: 1m + retryperiod: 1m actions: damn: cmd: [ "echo", "" ] @@ -30,7 +30,7 @@ streams: regex: - '^prout $' retry: 50 - retry-period: 1m + retryperiod: 1m actions: damn: cmd: [ "echo", "" ] @@ -45,7 +45,7 @@ streams: regex: - '^nanana $' retry: 50 - retry-period: 2m + retryperiod: 2m actions: damn: cmd: [ "true" ] @@ -60,7 +60,7 @@ streams: regex: - '^nomatch $' retry: 50 - retry-period: 2m + retryperiod: 2m actions: damn: cmd: [ "echo", "" ]