diff --git a/nostr/nostr.go b/nostr/nostr.go index a557420..339c501 100644 --- a/nostr/nostr.go +++ b/nostr/nostr.go @@ -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") }