fix drift client
This commit is contained in:
@@ -169,7 +169,8 @@ const main = async () => {
|
||||
connection,
|
||||
stateCommitment,
|
||||
ORDERBOOK_UPDATE_INTERVAL
|
||||
),
|
||||
);
|
||||
|
||||
driftClient = new DriftClient({
|
||||
connection,
|
||||
wallet,
|
||||
@@ -213,7 +214,11 @@ const main = async () => {
|
||||
await userMap.subscribe();
|
||||
const userStatsMap = new UserStatsMap(driftClient, {
|
||||
type: 'polling',
|
||||
accountLoader: bulkAccountLoader,
|
||||
accountLoader: new BulkAccountLoader(
|
||||
connection,
|
||||
stateCommitment,
|
||||
ORDERBOOK_UPDATE_INTERVAL * 10
|
||||
),
|
||||
});
|
||||
await userStatsMap.subscribe();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user