Skip to content

Commit 3f72967

Browse files
committed
fix: goofy self imports
1 parent 5c5dcaa commit 3f72967

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

sdk/src/accounts/webSocketProgramAccountSubscriberV2.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,10 @@ export class WebSocketProgramAccountSubscriberV2<T>
308308
!lastNotificationTime ||
309309
currentTime - lastNotificationTime >= this.pollingIntervalMs
310310
) {
311+
console.debug(
312+
'No recent WS notification, starting polling for account',
313+
accountIdString
314+
);
311315
// No recent WS notification, start polling
312316
await this.pollAccount(accountIdString);
313317
// Schedule next poll
@@ -353,6 +357,12 @@ export class WebSocketProgramAccountSubscriberV2<T>
353357
return;
354358
}
355359

360+
console.debug(
361+
'Polling all accounts',
362+
accountsToPoll.length,
363+
'accounts'
364+
);
365+
356366
// Fetch all accounts in a single batch request
357367
const accountAddresses = accountsToPoll.map(
358368
(accountId) => accountId as Address

sdk/src/driftClient.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,6 @@ export class DriftClient {
959959
* Adds and subscribes to users based on params set by the constructor or by updateWallet.
960960
*/
961961
public async addAndSubscribeToUsers(authority?: PublicKey): Promise<boolean> {
962-
console.log('adding and subscribing to users', this.users.size);
963962
// save the rpc calls if driftclient is initialized without a real wallet
964963
if (this.skipLoadUsers) return true;
965964

sdk/src/driftClientConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ import { Coder, Program } from '@coral-xyz/anchor';
2020
import { WebSocketAccountSubscriber } from './accounts/webSocketAccountSubscriber';
2121
import { WebSocketAccountSubscriberV2 } from './accounts/webSocketAccountSubscriberV2';
2222
import { WebSocketProgramAccountSubscriber } from './accounts/webSocketProgramAccountSubscriber';
23-
import { WebSocketDriftClientAccountSubscriber } from '@drift-labs/sdk';
2423
import { WebSocketDriftClientAccountSubscriberV2 } from './accounts/webSocketDriftClientAccountSubscriberV2';
24+
import { WebSocketDriftClientAccountSubscriber } from './accounts/webSocketDriftClientAccountSubscriber';
2525

2626
export type DriftClientConfig = {
2727
connection: Connection;

sdk/src/userConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Commitment, PublicKey } from '@solana/web3.js';
33
import { BulkAccountLoader } from './accounts/bulkAccountLoader';
44
import { GrpcConfigs, UserAccountSubscriber } from './accounts/types';
55
import { WebSocketProgramAccountSubscriber } from './accounts/webSocketProgramAccountSubscriber';
6-
import { UserAccount } from '@drift-labs/sdk';
6+
import { UserAccount } from './types';
77

88
export type UserConfig = {
99
accountSubscription?: UserSubscriptionConfig;

0 commit comments

Comments
 (0)