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

Cache each map and maybe, only sync db and cache to stop async calls in main function #21

Open
github-actions bot opened this issue Jan 31, 2022 · 0 comments

Comments

@github-actions
Copy link

Line: 13

// we check what mode user is in
// set throttle based on mode and only save data we need, maybe send full telemetry to frontend
/**
* TODO: Cache each map and maybe, only sync db and cache to stop async calls in main function
* category=nuxt
*/
export const throttledWrite = async (msg, rinfo, gameId) => {
// Checks
const userId = idFromIp(rinfo.address)
if (users[userId] === undefined || users[userId].udp === undefined) { return }

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

No branches or pull requests

0 participants