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
feat: Add node identity #3125
feat: Add node identity #3125
Changes from 1 commit
7caedf3
a1ea081
f916707
d916c33
1238aba
1b92c70
61c8fb0
82dc3b2
30a028f
2bd361a
940177d
55413a3
5ecf6ab
a32a1f4
62e38c5
ed20e57
a3396bc
3f03aa5
5b2f935
b9ebd23
d158f83
ab5dc33
4c73fb4
5946638
8e39ec3
0530ab7
ab3a9ea
0e0a252
5b3a5c4
a0f173f
b6d148b
95fc645
b154dbe
af4e2f9
2869d87
3210fbf
e4fc548
7fc8e3d
f3ca301
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
question: Curious why this was done?
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.
what exactly? We need a context with an identity in it for sending a request.
Please clarify your question. I also documented some of my decisions. Let me know, if they are not clear enough.
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.
Sorry, I will clarify. I am wondering why the function couldn't access
s.ctx
when the function is consuming thes
already in the function argument. Why did we need to have a new parameter and passs.ctx
separately?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.
because in some parts of the code the context is not stored in
s.ctx
. I don't know if there is a good reason for this.I can actually change it to something like this:
Not sure if that makes it better, but I don't have a strong opinion 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.
Oh wow, perhaps worth investigating later where and why that happens. I am happy with the suggested solution you gave for places that have missing ctx