From 3f35e9a771e88fdcea7eeb6981f3ddb9000041f8 Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Tue, 3 Sep 2024 17:42:30 +0200 Subject: [PATCH] add single_read option --- pkg/setting/settings_zanzana.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/setting/settings_zanzana.go b/pkg/setting/settings_zanzana.go index 50a2966e3ed..a4f34fbff4c 100644 --- a/pkg/setting/settings_zanzana.go +++ b/pkg/setting/settings_zanzana.go @@ -22,6 +22,8 @@ type ZanzanaSettings struct { HttpAddr string // Number of check requests running concurrently ConcurrentChecks int64 + // If enabled, result will be only evaluated by zanzana + SingleRead bool } func (cfg *Cfg) readZanzanaSettings() { @@ -41,6 +43,7 @@ func (cfg *Cfg) readZanzanaSettings() { s.ListenHTTP = sec.Key("listen_http").MustBool(false) s.HttpAddr = sec.Key("http_addr").MustString("127.0.0.1:8080") s.ConcurrentChecks = sec.Key("concurrent_checks").MustInt64(10) + s.SingleRead = sec.Key("single_read").MustBool(false) cfg.Zanzana = s }