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: allow mixing named and static shards #699

Merged
merged 1 commit into from
Sep 4, 2023
Merged

Conversation

richard-ramos
Copy link
Member

@richard-ramos richard-ramos commented Aug 31, 2023

Description

In status-im/status-go#3944 sharding is introduced for communities, however 1:1 and group chats use the DefaultPubsubTopic for now. In #696 (comment) @chaitanyaprem noticed that the current logic of go-waku would not set the shards if there's a mix of static and named sharding. This PR 'fixes' this problem, since currently on status-go we do have a mix of named and static shards.

Once status-go uses static sharding only, then we can remove the option to allow both static and named shards at the same time

Issue

Part of #634

@status-im-auto
Copy link

status-im-auto commented Aug 31, 2023

Jenkins Builds

Click to see older builds (7)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ be8b049 #1 2023-08-31 12:59:55 ~1 min linux 📦deb
✔️ be8b049 #1 2023-08-31 13:00:34 ~1 min nix-flake 📄log
✖️ be8b049 #1 2023-08-31 13:00:55 ~2 min tests 📄log
✔️ be8b049 #1 2023-08-31 13:01:50 ~3 min tests 📄log
✔️ be8b049 #1 2023-08-31 13:02:36 ~4 min android 📦tgz
✔️ be8b049 #2 2023-08-31 13:06:45 ~2 min tests 📄log
✔️ be8b049 #1 2023-08-31 13:07:34 ~8 min ios 📦tgz
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 28e4494 #2 2023-08-31 20:25:49 ~1 min linux 📦deb
✔️ 28e4494 #2 2023-08-31 20:26:27 ~2 min nix-flake 📄log
✔️ 28e4494 #3 2023-08-31 20:27:14 ~2 min tests 📄log
✔️ 28e4494 #2 2023-08-31 20:27:20 ~2 min tests 📄log
✔️ 28e4494 #2 2023-08-31 20:27:34 ~3 min android 📦tgz
✔️ 28e4494 #2 2023-08-31 20:28:04 ~3 min ios 📦tgz
✔️ 18f6580 #3 2023-09-04 14:05:35 ~33 sec linux 📦deb
✔️ 18f6580 #3 2023-09-04 14:06:21 ~1 min tests 📄log
✔️ 18f6580 #4 2023-09-04 14:06:55 ~1 min tests 📄log
✔️ 18f6580 #3 2023-09-04 14:06:55 ~1 min nix-flake 📄log
✔️ 18f6580 #3 2023-09-04 14:08:07 ~3 min android 📦tgz
✔️ 18f6580 #3 2023-09-04 14:09:07 ~4 min ios 📦tgz

Copy link
Collaborator

@chaitanyaprem chaitanyaprem left a comment

Choose a reason for hiding this comment

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

LGTM

waku/v2/discv5/discover.go Outdated Show resolved Hide resolved
@richard-ramos richard-ramos merged commit 84fa332 into master Sep 4, 2023
8 of 10 checks passed
@richard-ramos richard-ramos deleted the fix/enr-shard branch September 4, 2023 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants