add single_read option

This commit is contained in:
Alexander Zobnin
2024-09-03 17:42:30 +02:00
parent 2f06dce6c7
commit 3f35e9a771
+3
View File
@@ -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
}