Skip to content

Conversation

@brandonwestcott
Copy link
Contributor

All of the skynet objects were only getting the zlib header because the defer writer.Close() wasn't triggering till after the skynet upload call. This ensures the buffer is always called by pulling it out into its own method, used in both chaintree and sia stores, and then adds a test (which fails without the close).

@brandonwestcott brandonwestcott requested a review from a team April 2, 2020 15:30
@brandonwestcott brandonwestcott linked an issue Apr 2, 2020 that may be closed by this pull request
Copy link
Contributor

@cap10morgan cap10morgan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good sleuthing!

Copy link

@tobowers tobowers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this particular code looks good to me, but I'm not positive I have a full context, but this change looks nice.

@brandonwestcott brandonwestcott merged commit 62dd895 into master Apr 2, 2020
@brandonwestcott brandonwestcott deleted the bug/sia-corrupt-objects branch April 2, 2020 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

panic on git pull

4 participants