make wrong shit

This commit is contained in:
Phil 2022-12-23 23:07:00 +01:00
parent 86cc58d1f3
commit 24ab6d3183

View file

@ -2,7 +2,6 @@ package db
import (
"context"
"log"
"gitea.hackmi.ch/Phil/goshorly/utils"
"github.com/go-redis/redis/v8"
@ -20,9 +19,5 @@ func Client_redis() *redis.Client {
}
func Init_redis() {
_, err := Client_redis().Ping(ctx).Result()
if err != nil {
log.Fatal(err.Error())
}
Client_redis().Ping(ctx)
}