Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Document non-uniqueness of SetTopic IDs #7579

Merged
merged 2 commits into from
Aug 7, 2023

Conversation

KiChjang
Copy link
Contributor

@KiChjang KiChjang commented Aug 3, 2023

This PR documents that the parameter to SetTopic are not guaranteed to be unique, and hence the code author is responsible to maintain uniqueness if so desired.

@KiChjang KiChjang added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit. labels Aug 3, 2023
Copy link
Contributor

@bkontur bkontur left a comment

Choose a reason for hiding this comment

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

and also maybe some explicit comment to the WithUniqueTopic for the case message does end with a SetTopic

/// Wrapper router which, if the message does not already end with a SetTopic instruction,
/// appends one to the message filled with a universally unique ID. ...

@KiChjang
Copy link
Contributor Author

KiChjang commented Aug 7, 2023

bot merge

@paritytech-processbot paritytech-processbot bot merged commit 70d80aa into master Aug 7, 2023
5 checks passed
@paritytech-processbot paritytech-processbot bot deleted the kckyeung/set-topic-docs branch August 7, 2023 16:13
s0me0ne-unkn0wn pushed a commit that referenced this pull request Aug 15, 2023
* Document non-uniqueness of SetTopic IDs

* More comments on WithUniqueTopic
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants