always use dlob redis client for unsettled (#233)

This commit is contained in:
lowkeynicc
2024-08-12 22:33:51 -04:00
committed by GitHub
parent ea4fe97bad
commit f121de521e

View File

@@ -657,7 +657,10 @@ const main = async (): Promise<void> => {
return; return;
} }
const redisClient = perpMarketRedisMap.get(marketIndex).client; const redisClient = redisClients.find(
(client) =>
client.forceGetClient().options.keyPrefix === RedisClientPrefix.DLOB
);
const redisResponseGainers = await redisClient.getRaw( const redisResponseGainers = await redisClient.getRaw(
`perp_market_${marketIndex}_gainers` `perp_market_${marketIndex}_gainers`