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: store v3 return pubsub topics #2676

Merged
merged 4 commits into from
May 8, 2024

Conversation

SionoiS
Copy link
Contributor

@SionoiS SionoiS commented May 7, 2024

This PR is meant to unblock Waku Sync work.

Before Store v3 did not return the pubsub topics messages were sent on, now it does.

Follows updated vacp2p/rfc@5d69ab5

@SionoiS SionoiS self-assigned this May 7, 2024
Copy link
Contributor

@jm-clius jm-clius left a comment

Choose a reason for hiding this comment

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

Approving, but I do think the comment below should be addressed.

@@ -56,6 +56,7 @@ type
ArchiveResponse* = object
hashes*: seq[WakuMessageHash]
messages*: seq[WakuMessage]
topics*: seq[PubsubTopic]
Copy link
Contributor

Choose a reason for hiding this comment

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

Mmm. Wouldn't it be better to return seq[(message, topic)] to keep the 1:1 association explicit?

Copy link
Contributor Author

@SionoiS SionoiS May 7, 2024

Choose a reason for hiding this comment

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

At the archive driver lvl it's separate then you would use a tuple at the archive lvl then undo the tuple at the Store lvl.

I tried it. I does not make much sense.

Copy link

github-actions bot commented May 7, 2024

You can find the image built from this PR at

quay.io/wakuorg/nwaku-pr:2676-rln-v2

Built from fe7fe3a

Copy link

github-actions bot commented May 7, 2024

You can find the image built from this PR at

quay.io/wakuorg/nwaku-pr:2676-rln-v1

Built from fe7fe3a

Copy link
Contributor

@gabrielmer gabrielmer left a comment

Choose a reason for hiding this comment

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

LGTM 🤩

@SionoiS
Copy link
Contributor Author

SionoiS commented May 8, 2024

We got a segfault in CI but i can't reproduce locally. :|

@SionoiS
Copy link
Contributor Author

SionoiS commented May 8, 2024

Will merge even with CI red as it's unrelated and the issue is being investigated.

@SionoiS SionoiS merged commit d700006 into master May 8, 2024
9 of 15 checks passed
@SionoiS SionoiS deleted the feat--store-v3-return-pubsubtopic branch May 8, 2024 19:35
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