Template
1
0
Fork 0

Fixed pubsub errors

This commit is contained in:
Atridad Lahiji 2024-04-09 12:03:26 -06:00
parent 9e5da7a63b
commit 82c585e4fb
No known key found for this signature in database

View file

@ -2,7 +2,6 @@ package adapters
import (
"context"
"errors"
"os"
"atri.dad/lib"
@ -33,7 +32,7 @@ func NewRedisClient() (*redis.Client, error) {
opts, err := redis.ParseURL(redis_url)
if err != nil {
return nil, errors.New("math: square root of negative number")
return nil, err
}
lib.LogInfo.Printf("\n[PUBSUB/REDIS]Connecting to Redis at %s\n", opts.Addr)