Apply reviewers suggestions

This commit is contained in:
Age Manning
2019-11-29 12:21:19 +11:00
parent c78fe81a89
commit 4cd6178bca
6 changed files with 7 additions and 5 deletions

View File

@@ -965,7 +965,7 @@ impl<T: BeaconChainTypes> SyncManager<T> {
// remove any fully processed parent chains
self.parent_queue
.retain(|req| !(req.state == BlockRequestsState::ReadyToProcess));
.retain(|req| req.state != BlockRequestsState::ReadyToProcess);
re_run_poll
}
}