Change healthchecker to return error

This commit is contained in:
2021-11-06 00:41:27 +01:00
parent 8ba601a2b1
commit db8372f6db
5 changed files with 18 additions and 9 deletions

View File

@@ -142,8 +142,8 @@ func (ms *MemoryStore) Query(query AttemptQuery) ([]models.LoginAttempt, error)
return results, nil
}
func (s *MemoryStore) IsHealthy() bool {
return true
func (s *MemoryStore) IsHealthy() error {
return nil
}
func toResults(m map[string]int) []StatsResult {