remove user stats map from ws publish
This commit is contained in:
@@ -9,11 +9,9 @@ import {
|
|||||||
SlotSubscriber,
|
SlotSubscriber,
|
||||||
UserMap,
|
UserMap,
|
||||||
Wallet,
|
Wallet,
|
||||||
UserStatsMap,
|
|
||||||
} from '@drift-labs/sdk';
|
} from '@drift-labs/sdk';
|
||||||
|
|
||||||
import { logger, setLogLevel } from './utils/logger';
|
import { logger, setLogLevel } from './utils/logger';
|
||||||
|
|
||||||
import { sleep } from './utils/utils';
|
import { sleep } from './utils/utils';
|
||||||
import { DLOBSubscriberIO } from './dlob-subscriber/DLOBSubscriberIO';
|
import { DLOBSubscriberIO } from './dlob-subscriber/DLOBSubscriberIO';
|
||||||
import { RedisClient } from './utils/redisClient';
|
import { RedisClient } from './utils/redisClient';
|
||||||
@@ -86,11 +84,6 @@ const main = async () => {
|
|||||||
false
|
false
|
||||||
);
|
);
|
||||||
await userMap.subscribe();
|
await userMap.subscribe();
|
||||||
const userStatsMap = new UserStatsMap(
|
|
||||||
driftClient,
|
|
||||||
driftClient.userStatsAccountSubscriptionConfig
|
|
||||||
);
|
|
||||||
await userStatsMap.subscribe();
|
|
||||||
|
|
||||||
const redisClient = new RedisClient(REDIS_HOST, REDIS_PORT, REDIS_PASSWORD);
|
const redisClient = new RedisClient(REDIS_HOST, REDIS_PORT, REDIS_PASSWORD);
|
||||||
await redisClient.connect();
|
await redisClient.connect();
|
||||||
|
|||||||
Reference in New Issue
Block a user