Merge pull request #348 from ericchiang/db_health

server: add db heatlh checker to server checkers
This commit is contained in:
Eric Chiang 2016-03-14 13:17:19 -07:00
commit 1dd831700d

View file

@ -159,6 +159,7 @@ func (cfg *SingleServerConfig) Configure(srv *Server) error {
srv.PasswordInfoRepo = pwiRepo
srv.SessionManager = sm
srv.RefreshTokenRepo = refTokRepo
srv.HealthChecks = append(srv.HealthChecks, db.NewHealthChecker(dbMap))
return nil
}
@ -251,6 +252,7 @@ func (cfg *MultiServerConfig) Configure(srv *Server) error {
srv.PasswordInfoRepo = pwiRepo
srv.SessionManager = sm
srv.RefreshTokenRepo = refreshTokenRepo
srv.HealthChecks = append(srv.HealthChecks, db.NewHealthChecker(dbc))
return nil
}