Standardize redisCli var
This commit is contained in:
parent
314f0a6cd7
commit
5c078a90c8
1 changed files with 2 additions and 2 deletions
|
@ -125,12 +125,12 @@ func AddNostrAddr(n NostrRequest) {
|
||||||
}
|
}
|
||||||
jsonUser, _ := json.Marshal(user)
|
jsonUser, _ := json.Marshal(user)
|
||||||
|
|
||||||
r, err := redis.New("localhost:6379", "", redis.NostrDb)
|
redisCli, err := redis.New("localhost:6379", "", redis.NostrDb)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("Failed to connect to redis")
|
fmt.Println("Failed to connect to redis")
|
||||||
}
|
}
|
||||||
nameKey := getRkey("verified", n.Name, n.Hostname)
|
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 {
|
if err != nil {
|
||||||
fmt.Println("FAILED")
|
fmt.Println("FAILED")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue