From e0246e89565ce5a5dce2119408380b3a2831355d Mon Sep 17 00:00:00 2001 From: Jack Waller Date: Tue, 13 Aug 2024 14:37:45 +1000 Subject: [PATCH] chore: allow for separate usermap cluster --- src/scripts/publishUnsettledPnlUsers.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/scripts/publishUnsettledPnlUsers.ts b/src/scripts/publishUnsettledPnlUsers.ts index e68e59f..d1cac5a 100644 --- a/src/scripts/publishUnsettledPnlUsers.ts +++ b/src/scripts/publishUnsettledPnlUsers.ts @@ -54,6 +54,8 @@ const driftClient = new DriftClient({ }); const userMapRedisClient = new RedisClient({ + host: process.env.ELASTICACHE_USERMAP_HOST ?? process.env.ELASTICACHE_HOST, + port: process.env.ELASTICACHE_USERMAP_PORT ?? process.env.ELASTICACHE_PORT, prefix: RedisClientPrefix.USER_MAP, });