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")
|
||||
redis_url := os.Getenv("REDIS_URL")
|
||||
|
||||
opts, err := redis.ParseURL(redis_url)
|
||||
|
||||
if err != nil {
|
||||
return nil
|
||||
}
|
||||
opts, _ := redis.ParseURL(redis_url)
|
||||
|
||||
lib.LogInfo.Printf("\n[PUBSUB/REDIS]Connecting to Redis at %s\n", opts.Addr)
|
||||
RedisClient = redis.NewClient(opts)
|
||||
|
|
Loading…
Add table
Reference in a new issue