Skip to content

Commit

Permalink
fix: remove constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgemoya committed Jun 4, 2024
1 parent bce0e7d commit 7caa080
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions core/lib/kv/adapters/upstash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,9 @@ import { MemoryKvAdapter } from './memory';
const memoryKv = new MemoryKvAdapter();

export class UpstashKvAdapter implements KvAdapter {
private upstashKv: Redis;
private upstashKv = Redis.fromEnv();
private memoryKv = memoryKv;

constructor() {
this.upstashKv = Redis.fromEnv();
}

async get<Data>(key: string) {
const memoryValue = await this.memoryKv.get<Data>(key);

Expand Down

0 comments on commit 7caa080

Please sign in to comment.