Skip to content

Commit 6fc68f6

Browse files
committed
feat: more subscribe optimizations ws driftclient sub v2
1 parent 9970540 commit 6fc68f6

File tree

3 files changed

+49
-250
lines changed

3 files changed

+49
-250
lines changed

sdk/src/accounts/webSocketAccountSubscriberV2.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ export class WebSocketAccountSubscriberV2<T> implements AccountSubscriber<T> {
9191
this.rpcSubscriptions = rpcSubscriptions;
9292
}
9393

94-
private async handleNotificationLoop(subscriptionPromise: Promise<AsyncIterable<any>>) {
94+
private async handleNotificationLoop(
95+
subscriptionPromise: Promise<AsyncIterable<any>>
96+
) {
9597
const subscription = await subscriptionPromise;
9698
for await (const notification of subscription) {
9799
// If we're currently polling and receive a WebSocket event, stop polling

0 commit comments

Comments
 (0)