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
Download range of headers during syncing #1270
Download range of headers during syncing #1270
Changes from 31 commits
fb481a0
2ce71ea
18cad5f
47b7347
2df5a9b
964e798
341e54b
7c25646
e677568
fa39cd5
3ab1ec1
ce4c4b6
5abf18a
318afda
560ff4e
b61b3b7
9ed60e4
a3854e8
432d49c
53136b7
0aa691a
9b6d9ee
2523661
2733c5d
b1e970f
ee9efdd
efb7703
66b7d7c
0215ed1
1972302
fabb2b3
2b75c60
b5df8d4
7ec0ac0
1d4328a
3283587
d1f809a
94fc48b
c6a4b3d
9c0412e
5d63451
9a174b5
98856e6
91d5253
5332d01
f2d37b0
978b488
5970d6a
6132f5d
46e2c17
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.
This seems like an orthogonal change to the PR. Perhaps this can be done separately. On a personal note, I think I like having the intermediate borrow, because it demonstrates that the first argument to
load
is something calledstorage
, which is more intuitive thanself
.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 don't remember the context I was in when I changed this. I think I was just reading and felt like this was some misdirection in the code and removed the
borrow
to see what would happen.I can't argue with your point though. I do like documentation with code. So I can change it back.
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.
Can we consider simply calling this
get_sealed_headers
? I think_range
is not idiomatic in the context of the rest of our interfaces, where we may already accept a range without putting that in the function name.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.
Yeah. Totally. I'll fix it.