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

refactor(sharding): use switch statement #8928

Merged
merged 2 commits into from
Dec 15, 2022
Merged

refactor(sharding): use switch statement #8928

merged 2 commits into from
Dec 15, 2022

Conversation

tristancamejo
Copy link
Contributor

@tristancamejo tristancamejo commented Dec 14, 2022

Please describe the changes this PR makes and why it should be merged:

Internally we use switch else-where instead of else if statements, this also opens the gate up to more shard spawning implementations in the future without an else if mess.

Status and versioning classification:

  • Code changes have been tested against the Discord API, or there are no code changes
  • I know how to update typings and have done so, or typings don't need updating
  • This PR only includes internal code changes.

@vercel
Copy link

vercel bot commented Dec 14, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Updated
discord-js ⬜️ Ignored (Inspect) Dec 15, 2022 at 8:01AM (UTC)
discord-js-guide ⬜️ Ignored (Inspect) Dec 15, 2022 at 8:01AM (UTC)

@Syjalo
Copy link
Contributor

Syjalo commented Dec 15, 2022

This needs a rebase

@kodiakhq kodiakhq bot merged commit 6540914 into discordjs:main Dec 15, 2022
@tristancamejo tristancamejo deleted the refactor/switch-sharding branch December 17, 2022 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

6 participants