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

Extract contentFilter and subscriptions out of filter to reuse in relay #779

Merged

Conversation

chaitanyaprem
Copy link
Collaborator

@chaitanyaprem chaitanyaprem commented Sep 27, 2023

Description

Since relay with autosharding requires a very similar functionality as filter, extracted some common utils outside in order to reuse it.

Changes

  • Moved contentFilter outside of filter package
  • Moved Subscription outside filter package

Tests

All unit tests have passed.

@status-im-auto
Copy link

status-im-auto commented Sep 27, 2023

Jenkins Builds

Click to see older builds (12)
Commit #️⃣ Finished (UTC) Duration Platform Result
6d47314 #1 2023-09-27 11:45:40 ~1 min linux 📄log
✔️ 6d47314 #1 2023-09-27 11:46:24 ~1 min nix-flake 📄log
✔️ 6d47314 #1 2023-09-27 11:47:30 ~3 min tests 📄log
✔️ 6d47314 #1 2023-09-27 11:47:33 ~3 min tests 📄log
✔️ 6d47314 #1 2023-09-27 11:48:44 ~4 min android 📦tgz
✔️ 6d47314 #1 2023-09-27 11:50:21 ~5 min ios 📦tgz
0fa50db #2 2023-09-27 11:46:17 ~34 sec linux 📄log
✔️ 0fa50db #2 2023-09-27 11:48:20 ~1 min nix-flake 📄log
✔️ 0fa50db #2 2023-09-27 11:50:09 ~4 min ios 📦tgz
✔️ 0fa50db #2 2023-09-27 11:51:31 ~3 min tests 📄log
✔️ 0fa50db #2 2023-09-27 11:51:57 ~4 min tests 📄log
✔️ 0fa50db #2 2023-09-27 11:52:19 ~3 min android 📦tgz
Commit #️⃣ Finished (UTC) Duration Platform Result
2c2f157 #3 2023-09-27 12:33:58 ~1 min ios 📄log
✔️ 2c2f157 #3 2023-09-27 12:34:42 ~2 min tests 📄log
✔️ 2c2f157 #3 2023-09-27 12:34:43 ~2 min nix-flake 📄log
✔️ 2c2f157 #3 2023-09-27 12:35:01 ~2 min linux 📦deb
✔️ 2c2f157 #3 2023-09-27 12:35:33 ~2 min tests 📄log
✔️ 2c2f157 #3 2023-09-27 12:35:52 ~3 min android 📦tgz
2c2f157 #4 2023-09-27 12:36:44 ~1 min ios 📄log
✔️ 2c2f157 #5 2023-09-27 12:43:40 ~4 min ios 📦tgz
✔️ 2c18d31 #4 2023-09-28 23:19:20 ~1 min linux 📦deb
✔️ 2c18d31 #4 2023-09-28 23:20:04 ~1 min nix-flake 📄log
✔️ 2c18d31 #4 2023-09-28 23:21:05 ~2 min tests 📄log
✔️ 2c18d31 #4 2023-09-28 23:21:09 ~2 min tests 📄log
✔️ 2c18d31 #4 2023-09-28 23:21:30 ~3 min android 📦tgz
✔️ 2c18d31 #6 2023-09-28 23:22:27 ~4 min ios 📦tgz

Copy link
Member

@richard-ramos richard-ramos left a comment

Choose a reason for hiding this comment

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

🚀

waku/v2/protocol/filter/subscribers_map.go Outdated Show resolved Hide resolved
@chaitanyaprem chaitanyaprem merged commit 44e8d1f into feat/autoshard-lightpush Sep 28, 2023
@chaitanyaprem chaitanyaprem deleted the chore/extract-common-proto-utils branch September 28, 2023 23:22
chaitanyaprem added a commit that referenced this pull request Sep 29, 2023
* feat: update lightpush API to make pubSubTopic optional as per autosharding

* Extract contentFilter and subscriptions out of filter to reuse in relay (#779)

* chore: extract contentFilter outside filter package

* chore: move subscription outside of filter so that it can be modified and reused for relay

* Feat: filter select peer for sharding (#783)

* update selectPeer to support pubsubTopic based selection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants