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 (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"log"
|
|
||||||
|
|
||||||
"gitea.hackmi.ch/Phil/goshorly/utils"
|
"gitea.hackmi.ch/Phil/goshorly/utils"
|
||||||
"github.com/go-redis/redis/v8"
|
"github.com/go-redis/redis/v8"
|
||||||
|
@ -20,9 +19,5 @@ func Client_redis() *redis.Client {
|
||||||
}
|
}
|
||||||
|
|
||||||
func Init_redis() {
|
func Init_redis() {
|
||||||
_, err := Client_redis().Ping(ctx).Result()
|
Client_redis().Ping(ctx)
|
||||||
|
|
||||||
if err != nil {
|
|
||||||
log.Fatal(err.Error())
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue