This commit is contained in:
Atridad Lahiji 2024-04-09 11:44:59 -06:00
parent 14e59c2b9c
commit 8a592196c9
No known key found for this signature in database

View file

@ -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)