Skip to content

Commit

Permalink
pr comment
Browse files Browse the repository at this point in the history
  • Loading branch information
soundsonacid committed Jul 26, 2024
1 parent f112e9e commit 2289849
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sdk/src/openbook/openbookV2Subscriber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,13 @@ export class OpenbookV2Subscriber implements L2OrderBookGenerator {
if (this.subscriptionType === 'websocket') {
this.marketCallbackId = this.connection.onAccountChange(
this.marketAddress,
(accountInfo, _) => {
async (accountInfo, _) => {
const marketRaw = openbookV2Program.coder.accounts.decode(
'Market',
accountInfo.data
);
this.market = new Market(this.client, this.marketAddress, marketRaw);
(async () => {
await this.market.loadOrderBook();
})();
await this.market.loadOrderBook();
}
);
} else {
Expand Down

0 comments on commit 2289849

Please sign in to comment.