Skip to content

Expose the shard name and remaining bucket in the user:$id/cpu message#57

Open
tiennou wants to merge 1 commit intoscreeps:masterfrom
tiennou:fix/shard-bucket-in-cpu-pubsub
Open

Expose the shard name and remaining bucket in the user:$id/cpu message#57
tiennou wants to merge 1 commit intoscreeps:masterfrom
tiennou:fix/shard-bucket-in-cpu-pubsub

Conversation

@tiennou
Copy link
Copy Markdown
Contributor

@tiennou tiennou commented Apr 14, 2026

The idea is that this lets the client know (for MMO) which shard the received message belongs to, possibly letting it filter out the one that correspond to the currently viewed shard instead of being random.

bucket is just there because some people thought having the bucket in the UI would also be nice.

Caveat: this is assuming a lot about how MMO handles its sharding, which is private code; so the current way is based on what driver does, with a previous get for the value screepsmod-admin-utils uses.

Discord Issue: https://discord.com/channels/860665589738635336/1493610087334547497

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

Successfully merging this pull request may close these issues.

1 participant