Standardize redisCli var

This commit is contained in:
Amarpreet Minhas 2023-02-04 20:49:54 -05:00
parent 314f0a6cd7
commit 5c078a90c8

View file

@ -125,12 +125,12 @@ func AddNostrAddr(n NostrRequest) {
}
jsonUser, _ := json.Marshal(user)
r, err := redis.New("localhost:6379", "", redis.NostrDb)
redisCli, err := redis.New("localhost:6379", "", redis.NostrDb)
if err != nil {
fmt.Println("Failed to connect to redis")
}
nameKey := getRkey("verified", n.Name, n.Hostname)
err = r.Client.Set(nameKey, jsonUser, redis.NostrDb).Err()
err = redisCli.Client.Set(nameKey, jsonUser, redis.NostrDb).Err()
if err != nil {
fmt.Println("FAILED")
}