Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A critical level bug was found, if I'm right #221

Open
codermie opened this issue Jun 13, 2024 · 0 comments
Open

A critical level bug was found, if I'm right #221

codermie opened this issue Jun 13, 2024 · 0 comments

Comments

@codermie
Copy link

@huan
微信图片_20240613182419
In my opinion

this.cache.roomMember.set(roomId, {
... cachedPayload,
memberId: payload,
})
Should be changed to
this.cache.roomMember.set(roomId, {
... cachedPayload,
[memberId] : payload,
})
This makes use of the cache and optimizes the query speed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant