This commit is contained in:
wphan
2023-12-06 07:11:57 -08:00
parent 9ea5505f27
commit 6e90a1d796
5 changed files with 32 additions and 17 deletions

View File

@@ -207,11 +207,16 @@ const main = async () => {
getSlot: () => orderSubscriber.getSlot(),
};
} else {
const userMap = new UserMap(
const userMap = new UserMap({
driftClient,
driftClient.userAccountSubscriptionConfig,
false
);
subscriptionConfig: {
type: 'websocket',
resubTimeoutMs: 30_000,
commitment: stateCommitment,
},
skipInitialLoad: false,
includeIdle: false,
});
dlobProvider = getDLOBProviderFromUserMap(userMap);
}