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

Fix incorrect initialization of shard IDs in BuildClient #417

Merged
merged 1 commit into from
Feb 8, 2025

Conversation

apricotbucket28
Copy link
Contributor

Fixes a off-by-one error when initializing shardIDs the BuildClient.

Currently, if gatewayBotRs.Shards is 5, then shardIDs first gets initialized to:

{0,0,0,0,0}

Then, the loop iterates up to gatewayBotRs.Shards-1, skipping the fourth shard:

{0,1,2,3,0}

@topi314 topi314 merged commit b9e31d8 into disgoorg:master Feb 8, 2025
4 checks passed
@topi314
Copy link
Member

topi314 commented Feb 8, 2025

thanks!

@apricotbucket28 apricotbucket28 deleted the off-by-one-shard-ids branch February 8, 2025 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants