Skip to content
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

only traverse cbor blocks when running mst diff #425

Merged
merged 1 commit into from
Nov 9, 2023

Conversation

whyrusleeping
Copy link
Collaborator

I spaced the fact that we include proper dag-cbor cid links to images which are not actually included in the car slices. In the case where someone drops a reference to an image (deletes an image post, or updates their profile picture) then we would hit this 'ipld not found' error on the image cid (since we never got it in the first place).

Here, we skip any CID that isnt CBOR, This is a reasonable assumption to make for now, unless we start dangling random cbor graphs off of the MST, at which point ill probably need to get more clever (I'd really rather not).

Copy link
Collaborator

@ericvolp12 ericvolp12 left a comment

Choose a reason for hiding this comment

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

Sure

@whyrusleeping whyrusleeping merged commit 32b3dce into main Nov 9, 2023
6 checks passed
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.

2 participants