From bdef0beb352c1692684a623de3caa5945380b8e5 Mon Sep 17 00:00:00 2001 From: Ferlonas Date: Wed, 28 Apr 2021 10:13:32 +0200 Subject: [PATCH] Fix wrong logic when disabling couchdb health check --- backend/couchdb/db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/couchdb/db.go b/backend/couchdb/db.go index f4fc2174e..057f89b74 100644 --- a/backend/couchdb/db.go +++ b/backend/couchdb/db.go @@ -38,7 +38,7 @@ func Database(name string) (*kivik.DB, error) { return nil, err } - if cfg.DisableHealthCheck { + if !cfg.DisableHealthCheck { servicehealthcheck.RegisterHealthCheck("couchdb("+name+")", &HealthCheck{ Name: name, Client: healthCheckClient,