Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Commit

Permalink
chore: remove is not needed in the initial call
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Burtey committed Aug 21, 2023
1 parent d456f09 commit db72ef1
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions app/lnurlp/[username]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
HttpLink,
InMemoryCache,
} from "@apollo/client"
import Redis from "ioredis"

import { GRAPHQL_URI_INTERNAL, NOSTR_PUBKEY } from "../../../lib/config"
import {
Expand Down Expand Up @@ -73,34 +72,6 @@ gql`

const nostrEnabled = !!NOSTR_PUBKEY

let redis: Redis | null = null

if (nostrEnabled) {
const connectionObj = {
sentinelPassword: process.env.REDIS_PASSWORD,
sentinels: [
{
host: `${process.env.REDIS_0_DNS}`,
port: 26379,
},
{
host: `${process.env.REDIS_1_DNS}`,
port: 26379,
},
{
host: `${process.env.REDIS_2_DNS}`,
port: 26379,
},
],
name: process.env.REDIS_MASTER_NAME ?? "mymaster",
password: process.env.REDIS_PASSWORD,
}

redis = new Redis(connectionObj)

redis.on("error", (err) => console.log({ err }, "Redis error"))
}

export async function GET(
request: Request,
{ params }: { params: { username: string } },
Expand Down

0 comments on commit db72ef1

Please sign in to comment.