Conversation
blocks.sort(); | ||
|
||
blocks.into_iter() | ||
.map(|number| self.chain.read().unwrap().block_hash(number).map(|hash| (number, hash))) |
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.
lock could be extracted?
this has 3,632 + 562 lines altered. that's way too much. i know that a lot of these lines are moving stuff around and some will be from #418, but assuming that #418 doesn't account for > 4k of those lines, the refactoring should be in a separate PR. please rearrange into multiple PRs that are either large but utterly trivial, or small (< 500 total lines changed) with new logic. |
it actually has only 300 lines changed... don't know why github was displaying so many changes... |
fair enough. don't know what was going on before... |
needs a merge |
pub fn new_with_timer(timer: T) -> Self { | ||
PollManager { | ||
polls: TransientHashMap::new_with_timer(POLL_LIFETIME, timer), | ||
next_available_id: 0 |
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.
trailing ,
missing
a few minor issues/questions. would be nice to see comprehensive tests for |
issues fixed :) I will make rpc tests my priority now, cause they are the only dangling rpc task besides account management. |
fixes #551