Skip to content

Commit

Permalink
Merge pull request #263 from pace/fix-couchdb-healthcheck-disable
Browse files Browse the repository at this point in the history
Fix wrong logic when disabling couchdb health check
  • Loading branch information
daemonfire300 authored Apr 28, 2021
2 parents aa4da6e + bdef0be commit d812d59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/couchdb/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d812d59

Please sign in to comment.