Skip to content

Commit

Permalink
ts: add UserStatsMap back to BaseJitter
Browse files Browse the repository at this point in the history
  • Loading branch information
crispheaney committed Jan 23, 2024
1 parent d96bd1a commit db5f115
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ts/sdk/src/jitter/baseJitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,16 @@ export abstract class BaseJitter {
this.auctionSubscriber = auctionSubscriber;
this.driftClient = driftClient;
this.jitProxyClient = jitProxyClient;
this.userStatsMap =
userStatsMap ||
new UserStatsMap(this.driftClient, {
type: 'polling',
accountLoader: new BulkAccountLoader(
this.driftClient.connection,
'confirmed',
0
),
});
}

async subscribe(): Promise<void> {
Expand Down

0 comments on commit db5f115

Please sign in to comment.