-
Notifications
You must be signed in to change notification settings - Fork 86
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
[CAD-3383] Add --num-blocks-to-process option to db-analyser #3379
Conversation
23037ae
to
6775b3d
Compare
6775b3d
to
2f00983
Compare
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.
👍 A few minor suggestions.
7a0c043
to
ef7da5d
Compare
@nfrisby this is now ready for 2nd review |
|
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.
Approved; just a couple style comments.
ChainDB.IteratorBlockGCed pt -> error $ "block GC'ed " <> show pt | ||
go :: ChainDB.Iterator IO blk b -> Limit -> st -> IO st | ||
go itr lt !st = case decreaseLimit lt of | ||
Nothing -> return st |
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.
Please align these ->
and remove the parens around the Just
pattern.
go itr !st = do | ||
go :: ImmutableDB.Iterator IO blk b -> Limit -> st -> IO st | ||
go itr lt !st = case decreaseLimit lt of | ||
Nothing -> return st |
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.
Please align these ->
and remove the parens around the Just
pattern.
ef7da5d
to
3bdb104
Compare
bors merge |
Build succeeded: |
Add --limit option so that user can control number of blocks they want to process