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: publish API for relay and lightpush #845

Merged
merged 1 commit into from
Oct 30, 2023

Conversation

richard-ramos
Copy link
Member

@richard-ramos richard-ramos commented Oct 27, 2023

Description

I noticed that the API for Lightpush and Relay were somewhat different and would really benefit from having a similar API.

Changes

  • Removed PublishToTopic from Lightpush and Relay to use only Publish with options
  • Updated docs for both protocols
  • Updated examples to use new API
  • Added examples/noise to the build-example target

Probably most of this work will go away once named shard support is removed, but whatever :D at least we wont have two separate Publish functions anymore

@status-im-auto
Copy link

status-im-auto commented Oct 27, 2023

Jenkins Builds

Click to see older builds (12)
Commit #️⃣ Finished (UTC) Duration Platform Result
✖️ c758801 #1 2023-10-27 14:24:14 ~54 sec nix-flake 📄log
c758801 #1 2023-10-27 14:24:26 ~1 min linux 📄log
✖️ c758801 #1 2023-10-27 14:25:05 ~1 min tests 📄log
✖️ c758801 #1 2023-10-27 14:25:06 ~1 min tests 📄log
✔️ c758801 #1 2023-10-27 14:27:48 ~4 min android 📦tgz
✔️ c758801 #1 2023-10-27 14:27:57 ~4 min ios 📦tgz
✖️ 0af3455 #2 2023-10-27 14:27:15 ~22 sec tests 📄log
✖️ 0af3455 #2 2023-10-27 14:28:16 ~1 min tests 📄log
✔️ 0af3455 #2 2023-10-27 14:28:47 ~1 min nix-flake 📄log
✔️ 0af3455 #2 2023-10-27 14:29:11 ~2 min linux 📦deb
✔️ 0af3455 #2 2023-10-27 14:31:19 ~3 min android 📦tgz
✔️ 0af3455 #2 2023-10-27 14:31:22 ~4 min ios 📦tgz
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ a70f61f #3 2023-10-27 14:33:12 ~2 min nix-flake 📄log
✔️ a70f61f #3 2023-10-27 14:34:17 ~3 min tests 📄log
✔️ a70f61f #3 2023-10-27 14:34:21 ~3 min linux 📦deb
✔️ a70f61f #3 2023-10-27 14:34:46 ~3 min tests 📄log
✔️ a70f61f #3 2023-10-27 14:35:02 ~3 min ios 📦tgz
✔️ a70f61f #3 2023-10-27 14:37:12 ~5 min android 📦tgz
✔️ f8d792f #4 2023-10-30 15:35:50 ~5 min linux 📦deb
✔️ f8d792f #4 2023-10-30 15:37:45 ~7 min nix-flake 📄log
✔️ f8d792f #4 2023-10-30 15:38:46 ~8 min android 📦tgz
✔️ f8d792f #4 2023-10-30 15:41:18 ~11 min tests 📄log
✔️ f8d792f #4 2023-10-30 15:42:03 ~11 min tests 📄log
✔️ f8d792f #4 2023-10-30 16:09:02 ~38 min ios 📦tgz

@richard-ramos
Copy link
Member Author

Opened also this issue due to noticing an incorrect behavior in the examples: #846

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.

Looks Good

Few minor comments to be addressed.

docs/api/relay.md Outdated Show resolved Hide resolved
docs/api/relay.md Outdated Show resolved Hide resolved
examples/filter2/main.go Show resolved Hide resolved
waku/v2/protocol/lightpush/waku_lightpush_option.go Outdated Show resolved Hide resolved
@richard-ramos richard-ramos merged commit 38202e7 into master Oct 30, 2023
2 checks passed
@richard-ramos richard-ramos deleted the refactor/publish branch October 30, 2023 16:30
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