Add redis connection test before start #29

Closed
ada wants to merge 32 commits from ada/redis-ping into main
Showing only changes of commit 55a79dbd9d - Show all commits

View file

@ -33,10 +33,7 @@ func GenerateSecret() string {
// CheckCharRedundant verify is a character is redundant in a string
func CheckCharRedundant(source string, char string) bool { // Verify if a char is redundant
if strings.Count(source, char) > 1 {
return true
}
return false
return strings.Count(source, char) > 1
}
func parseIntBeforeSeparator(source *string, sep string) (int, error) { // return 0 & error if error, only accept positive number