-
Notifications
You must be signed in to change notification settings - Fork 7
Double check heavy archive size before start downloading #601
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
base: master
Are you sure you want to change the base?
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #601 +/- ##
==========================================
- Coverage 42.90% 42.81% -0.09%
==========================================
Files 278 278
Lines 51883 51924 +41
Branches 51883 51924 +41
==========================================
- Hits 22260 22233 -27
- Misses 28455 28528 +73
+ Partials 1168 1163 -5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
7a3738e to
9bc1b25
Compare
7fff7ef to
7e67215
Compare
0xdeafbeef
left a comment
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.
fix nits, otherwise lgtm
core/src/blockchain_rpc/client.rs
Outdated
| .choose_multiple(NEIGHBOUR_COUNT, NeighbourType::Reliable); | ||
|
|
||
| let mut futures = FuturesUnordered::new(); | ||
| for neighbour in neighbours { | ||
| futures.push(self.overlay_client().query_raw(neighbour, req.clone())); | ||
| } |
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.
.map(self.overlay_client().query_raw(neighbour, req.clone())
.collect()
core/src/blockchain_rpc/client.rs
Outdated
| id, | ||
| size, | ||
| chunk_size, | ||
| } => match is_reliable_size(expected_size.get(), size.get()) { |
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.
ArchiveInfo::Found {
id,
size,
chunk_size,
} is_reliable_size(expected_size.get(), size.get()) => ...
```
a5ea341 to
884e59e
Compare
5a83fcb to
1b9e10a
Compare
dad89c9 to
8d9ab65
Compare
No description provided.