Code Review
/
ric-plt
/
a1.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fixing A1 healthcheck
[ric-plt/a1.git]
/
pkg
/
resthooks
/
resthooks.go
diff --git
a/pkg/resthooks/resthooks.go
b/pkg/resthooks/resthooks.go
index
cf7a2d1
..
49df6f4
100644
(file)
--- 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 {
}
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 {
}
func (rh *Resthook) GetAllPolicyType() []models.PolicyTypeID {