forked from mystiq/dex
Merge pull request #348 from ericchiang/db_health
server: add db heatlh checker to server checkers
This commit is contained in:
commit
1dd831700d
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue