smol fix
This commit is contained in:
parent
14e59c2b9c
commit
8a592196c9
1 changed files with 1 additions and 5 deletions
|
@ -29,11 +29,7 @@ func NewRedisClient() *redis.Client {
|
||||||
godotenv.Load(".env")
|
godotenv.Load(".env")
|
||||||
redis_url := os.Getenv("REDIS_URL")
|
redis_url := os.Getenv("REDIS_URL")
|
||||||
|
|
||||||
opts, err := redis.ParseURL(redis_url)
|
opts, _ := redis.ParseURL(redis_url)
|
||||||
|
|
||||||
if err != nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
lib.LogInfo.Printf("\n[PUBSUB/REDIS]Connecting to Redis at %s\n", opts.Addr)
|
lib.LogInfo.Printf("\n[PUBSUB/REDIS]Connecting to Redis at %s\n", opts.Addr)
|
||||||
RedisClient = redis.NewClient(opts)
|
RedisClient = redis.NewClient(opts)
|
||||||
|
|
Loading…
Add table
Reference in a new issue