Skip to content

Commit 106fa4a

Browse files
committed
fix: removed creating PubSub instance in class properties
1 parent 8214b7f commit 106fa4a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/PgCache.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,7 @@ export function PgCache(options: PgCacheOptions): ClassDecorator {
250250
class CachedService {
251251
private taggedCache: TagCache;
252252
private pgCacheChannels: PgCacheChannels;
253-
private pubSub: PgPubSub = new PgPubSub({
254-
connectionString: options.postgres,
255-
} as any);
253+
private pubSub: PgPubSub;
256254

257255
public async start(...args: any[]): Promise<void> {
258256
this.pubSub = new PgPubSub({

0 commit comments

Comments
 (0)