Skip to content

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
apricotbucket28 added a commit to apricotbucket28/disgo that referenced this pull request Feb 16, 2025
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