Skip to content
This repository has been archived by the owner on Mar 2, 2022. It is now read-only.

feat: initial implementation #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vasco-santos
Copy link
Contributor

@vasco-santos vasco-santos commented Jan 4, 2022

This PR adds the initial implementation of the read test lambda.

There are still a few challenges to figure out, regarding larger/incomplete CAR files. As a result this MVP version comes with a few assumptions (described in the README) on when to actually try a read test.

Closes nftstorage/nft.storage#755

@vasco-santos vasco-santos force-pushed the feat/initial-implementation branch 5 times, most recently from 0e0e90d to adff84b Compare January 13, 2022 14:06
)

const inspection = await inspectCarBlocks(rootCid, stat.blocksIterator)
structure = inspection.structure || metadata.structure
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can't simply trust in metadata.structure because it will not inspect the dag within the CAR. So mayb, we can drop it here after all

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.

async gateway read tests on every write
1 participant