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: continue pubsub/content types started in #1352 #1362

Merged
merged 2 commits into from
Nov 9, 2022

Conversation

alrevuelta
Copy link
Contributor

@alrevuelta alrevuelta commented Nov 9, 2022

Summary:

As a general note, which I think @LNSD agrees with me, we should be specific using pubsub or content instead of just using topic. As it may be confusing.

@status-im-auto
Copy link
Collaborator

status-im-auto commented Nov 9, 2022

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ c619c32 #1 2022-11-09 09:44:18 ~14 min macos 📦bin
✔️ c619c32 #1 2022-11-09 09:49:08 ~19 min linux 📦bin

@alrevuelta alrevuelta marked this pull request as ready for review November 9, 2022 10:05
@alrevuelta alrevuelta requested review from LNSD, jm-clius and rymnc November 9, 2022 10:05
Comment on lines +30 to +31
DefaultPubsubTopic*: PubsubTopic = PubsubTopic("/waku/2/default-waku/proto")
DefaultContentTopic*: ContentTopic = ContentTopic("/waku/2/default-content/proto")
Copy link
Contributor

Choose a reason for hiding this comment

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

This is redundant and not necessary, the types are not distinct string

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep, thought it was nice for reference, so that people declaring topics they would see this and follow the pattern:

let x = PubsubTopic("x/y/z/a")

instead of let y = "x/y/z/a" which I would say its bad practise?

no strong opinion about it, though :)

Copy link
Contributor

Choose a reason for hiding this comment

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

It is redundant since the variable is already type annotated:

 DefaultPubsubTopic*: PubsubTopic = PubsubTopic("/waku/2/default-waku/proto")
 #~~~~~~~~~~~~~~~~~~~~~~~~~^

Copy link
Contributor

@LNSD LNSD left a comment

Choose a reason for hiding this comment

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

LGTM ✅

Copy link
Contributor

@rymnc rymnc left a comment

Choose a reason for hiding this comment

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

LGTM!

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.

LGTM! Thanks.

@alrevuelta alrevuelta merged commit 054dc61 into master Nov 9, 2022
@alrevuelta alrevuelta deleted the pubsub-refactor branch November 9, 2022 14:00
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.

5 participants