Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
xcm: fix for DenyThenTry Barrier #7169
base: master
Are you sure you want to change the base?
xcm: fix for DenyThenTry Barrier #7169
Changes from 12 commits
faa431a
d0748cf
bf669bb
716ccdc
17c9b14
e10587b
d83dadb
0b4c955
ac810f7
8f0af5b
67e7991
ee8de3e
2b496e5
81ec7f1
17c4972
58d7990
2258ab1
dbfe244
462c049
6e578bf
e4acb39
8b94963
b2f7338
a8a7ea3
a78449e
ddba5dc
66814c9
02912a6
5d3a5e7
85b06c2
dfbafc5
a842c4d
c7cd51d
551afc1
cd33044
639177b
7564e23
d9c2f0e
a04aae2
c038e86
234a5e7
b39f07e
110d42e
8699575
3cd6bf5
6b65c81
03ff441
8d61bfb
c2719f9
83835fc
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitish: using
Result
instead ofOption
would be idiomatic here.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The original version is something like that. @bkontur left some concerns in
#7169 (comment) which make sense to me, so we made the change accordingly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand it better with the
Option
because seeingSome(_)
makes me guess it will be denied but seeingOk(_)
makes me doubt whether or not it's okay to deny or okay to pass.To clear up all possible misunderstanding we could use a custom enum:
Might be overkill though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Miss the comment in another thread #7169 (comment)
@franciscoaguirre seems others prefer more to
Result<(), ProcessMessageError>
, but thanks for the comment here anyway.