make wrong shit
This commit is contained in:
parent
86cc58d1f3
commit
24ab6d3183
1 changed files with 1 additions and 6 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue