Handle unexpected redis error on setup (#2)

Co-authored-by: Lewis Crichton <lewi@lewisakura.moe>
This commit is contained in:
Matt Artist
2023-04-07 12:18:29 -04:00
committed by GitHub
parent 4d33ea7139
commit a51be4a111
+2
View File
@@ -282,6 +282,8 @@ func main() {
secret = hex.EncodeToString(key)
rdb.Set(c.Context(), "secrets:"+hash(PEPPER_SECRETS+userId), secret, 0)
} else if err != nil {
panic(err)
}
return c.JSON(&fiber.Map{