chore: decouple usermap in dlob

This commit is contained in:
Jack Waller
2024-09-18 15:51:16 +10:00
parent 4f81ce2645
commit f0269e5352

View File

@@ -331,7 +331,11 @@ const main = async (): Promise<void> => {
}
}
const userMapClient = new RedisClient({ prefix: RedisClientPrefix.USER_MAP });
const userMapClient = 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,
});
function canRotate(marketType: MarketType, marketIndex: number) {
if (isVariant(marketType, 'spot')) {