chore: update clients to be env vars

This commit is contained in:
Jack Waller
2024-11-21 12:22:47 -05:00
parent d43d2d2591
commit 4b9b337a60
4 changed files with 22 additions and 5 deletions

View File

@@ -34,7 +34,9 @@ const WS_PORT = process.env.WS_PORT || '3000';
console.log(`WS LISTENER PORT : ${WS_PORT}`);
const MAX_BUFFERED_AMOUNT = 300000;
const CHANNEL_PREFIX = RedisClientPrefix.DLOB;
const REDIS_CLIENT = process.env.REDIS_CLIENT || 'DLOB';
const CHANNEL_PREFIX = RedisClientPrefix[REDIS_CLIENT];
console.log('Redis Clients:', REDIS_CLIENT);
const CHANNEL_PREFIX_HELIUS = RedisClientPrefix.DLOB_HELIUS;
const sanitiseChannelForClient = (channel: string | undefined): string => {