Add healthcheck to all stores

This commit is contained in:
2021-11-06 00:37:28 +01:00
parent a19fb3086b
commit 8ba601a2b1
5 changed files with 21 additions and 0 deletions

View File

@@ -120,3 +120,7 @@ func (s *MetricsCollectingStore) Stats(statType LoginStats, limit int) ([]StatsR
func (s *MetricsCollectingStore) Query(query AttemptQuery) ([]models.LoginAttempt, error) {
return s.store.Query(query)
}
func (s *MetricsCollectingStore) IsHealthy() bool {
return s.IsHealthy()
}