Add nostr nip-05 registration with lnd invoices #1
1 changed files with 2 additions and 2 deletions
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue