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

@vasco-santos vasco-santos force-pushed the feat/initial-implementation branch from adff84b to 60a4376 Compare January 13, 2022 14:33
@vasco-santos vasco-santos requested a review from alanshaw January 19, 2022 11:02
@vasco-santos vasco-santos force-pushed the feat/initial-implementation branch from 60a4376 to 473e9c7 Compare January 25, 2022 10:22
@vasco-santos vasco-santos mentioned this pull request Jan 26, 2022
1 task
@vasco-santos vasco-santos force-pushed the feat/initial-implementation branch from 473e9c7 to b2ca245 Compare January 26, 2022 15:20
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