Merge pull request #252 from drift-labs/master

chore: decouple usermap in dlob
This commit is contained in:
jack
2024-09-18 15:53:16 +10:00
committed by GitHub

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) { function canRotate(marketType: MarketType, marketIndex: number) {
if (isVariant(marketType, 'spot')) { if (isVariant(marketType, 'spot')) {