diff --git a/app/lnurlp/[username]/route.ts b/app/lnurlp/[username]/route.ts index 3d1b6496..66097fb5 100644 --- a/app/lnurlp/[username]/route.ts +++ b/app/lnurlp/[username]/route.ts @@ -9,7 +9,6 @@ import { HttpLink, InMemoryCache, } from "@apollo/client" -import Redis from "ioredis" import { GRAPHQL_URI_INTERNAL, NOSTR_PUBKEY } from "../../../lib/config" import { @@ -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 } },