diff options
Diffstat (limited to 'src/k8splugin/api/api.go')
-rw-r--r-- | src/k8splugin/api/api.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/k8splugin/api/api.go b/src/k8splugin/api/api.go index e90c994e..f05fbb0b 100644 --- a/src/k8splugin/api/api.go +++ b/src/k8splugin/api/api.go @@ -47,12 +47,7 @@ func CheckDatabaseConnection() error { return pkgerrors.Cause(err) } - err = db.DBconn.InitializeDatabase() - if err != nil { - return pkgerrors.Cause(err) - } - - err = db.DBconn.CheckDatabase() + err = db.DBconn.HealthCheck() if err != nil { return pkgerrors.Cause(err) } |