X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fresthooks%2Fresthooks.go;h=49df6f465977361f52e188461dc1bbe8afab2ed7;hb=efeb06cc49320e812441a43a071907a9830955ad;hp=cf7a2d18f3b0ca1bb0cafa563078d8ca10b8be9b;hpb=c28a0f5b8812d67786a600932ecf877762e344cd;p=ric-plt%2Fa1.git 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 {