From efeb06cc49320e812441a43a071907a9830955ad Mon Sep 17 00:00:00 2001 From: "naman.gupta" Date: Wed, 14 Dec 2022 21:50:10 +0530 Subject: [PATCH] Fixing A1 healthcheck Fixing A1 healthcheck. Signed-off-by: naman.gupta Change-Id: I42b5c87c41a2efc25ac1cd63bc53e969882de81e --- pkg/resthooks/resthooks.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/pkg/resthooks/resthooks.go b/pkg/resthooks/resthooks.go index cf7a2d1..49df6f4 100644 --- a/pkg/resthooks/resthooks.go +++ b/pkg/resthooks/resthooks.go @@ -102,12 +102,9 @@ func createResthook(sdlInst iSdl, rmrSenderInst rmr.IRmrSender) *Resthook { } func (rh *Resthook) GetA1Health() bool { - data, _ := rh.db.GetAll(a1MediatorNs) - if data != nil { - a1.Logger.Debug("Database connected and A1 is healthy") - return true - } - return false + //TODO : Add database healthcheck + a1.Logger.Debug("A1 is healthy") + return true } func (rh *Resthook) GetAllPolicyType() []models.PolicyTypeID { -- 2.16.6