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

feat(shards): Support Non-Sequential Shard IDs #1389

Draft
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

HcgRandon
Copy link
Contributor

@HcgRandon HcgRandon commented Jun 17, 2022

This PR adds support for non-sequential shardsIDs to be used in eris. Currently I wrote it to override firstShardID and lastShardID if any numbers exist in the array. But I can see valid cases for the following as well:

  • Throw an error if both firstShardID/lastShardID and shardIDs are defined
  • firstShardID/lastShardID take priority and must be set to null for shardIDs to be used

Please let me know if I should change the logic to reflect one of these other states or to something entirely different if someone has a better idea.

I have performed basic testing of this and seems fine, but I want to test it more thoroughly before we merge.

Closes #1385

@HcgRandon
Copy link
Contributor Author

#1385 related

lib/Client.js Outdated Show resolved Hide resolved
lib/Client.js Outdated Show resolved Hide resolved
Copy link
Contributor

@DonovanDMC DonovanDMC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as far as I can tell, this works fine

@abalabahaha abalabahaha added this to the 0.17.x milestone Jun 29, 2022
@HcgRandon
Copy link
Contributor Author

Marking this as a draft until #1384 is merged, as it makes more sense to just do these together rather then immediately deprecating options.shardIDs

@HcgRandon HcgRandon marked this pull request as draft June 30, 2022 01:13
@DonovanDMC DonovanDMC changed the title support non-sequential shardIds feat(shards): Support Non-Sequential Shard IDs Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Posibility to set our own shardlList for client.
3 participants