-
Notifications
You must be signed in to change notification settings - Fork 111
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
Bug/no partial files - fixes #36 #71
Conversation
Fixes #36 |
src/main/java/com/hedera/downloader/AccountBalancesDownloader.java
Outdated
Show resolved
Hide resolved
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 request some code consolidation (see comments). It may seem minor, but any time cut & paste code can be eliminated, it should be.
src/main/java/com/hedera/downloader/AccountBalancesDownloader.java
Outdated
Show resolved
Hide resolved
src/main/java/com/hedera/downloader/EventStreamFileDownloader.java
Outdated
Show resolved
Hide resolved
Consolidated where you suggested and more. |
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.
LGTM
I'll let Mike give final approval
First downloads record, balance and event files to a .../tmp folder.
When download completes, file is moved to .../valid folder.
Also, original code skipped downloading signature files that already existed, I've removed that check such that partial downloads of signature files don't result in permanently truncated files.
No need to first download signatures into a /tmp folder, they are processed after download in the same thread/process as the downloading itself.