Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

fix(directory): initialize size when computing it #93

Merged
merged 1 commit into from
May 21, 2021

Conversation

schomatis
Copy link
Contributor

Normally this is called from the constructor with the size cleared but I added the same call to the unlikely case we underflow because of a bug. Maybe that call shouldn't exist in the first place but wasn't sure how to handle that without leaving the computation unbalanced. In any case, this is not an addition like the other functions but a computation from scratch so this is the right fix.

@schomatis schomatis self-assigned this May 21, 2021
Copy link
Contributor

@aschmahmann aschmahmann left a comment

Choose a reason for hiding this comment

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

LGTM

@aschmahmann aschmahmann merged commit 06053e4 into master May 21, 2021
@schomatis schomatis deleted the schomatis/fix/dir/compute-size branch May 21, 2021 20:54
@aschmahmann aschmahmann mentioned this pull request Dec 1, 2021
80 tasks
Jorropo pushed a commit to Jorropo/go-libipfs that referenced this pull request Jan 25, 2023
…ute-size

fix(directory): initialize size when computing it

This commit was moved from ipfs/go-unixfs@06053e4
Jorropo pushed a commit to ipfs/go-libipfs-rapide that referenced this pull request Mar 23, 2023
…ute-size

fix(directory): initialize size when computing it

This commit was moved from ipfs/go-unixfs@06053e4
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants