Skip to content

Commit

Permalink
sdk: fix sync in userMap
Browse files Browse the repository at this point in the history
  • Loading branch information
crispheaney committed Jan 9, 2024
1 parent 6415e29 commit 8698a43
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sdk/src/userMap/userMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,9 @@ export class UserMap implements UserMapInterface {
const userAccount = this.decode('User', buffer);
await this.addPubkey(new PublicKey(key), userAccount);
this.userMap.get(key).accountSubscriber.updateData(userAccount, slot);
} else {
const userAccount = this.decode('User', buffer);
this.userMap.get(key).accountSubscriber.updateData(userAccount, slot);
}
// give event loop a chance to breathe
await new Promise((resolve) => setTimeout(resolve, 0));
Expand Down

0 comments on commit 8698a43

Please sign in to comment.