-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: initial implementation #2
base: main
Are you sure you want to change the base?
Conversation
6d4ff22
to
264452c
Compare
264452c
to
c368952
Compare
406a735
to
bb7b650
Compare
bb7b650
to
1b51a4e
Compare
f24c960
to
25fd570
Compare
|
||
There are a few assumptions in place and this lambda function will assemble CARs if: | ||
- S3 Object Metadata has a "Complete" structure | ||
- S3 Object has a DagPB encoded root with a known size __acceptable__ (100MB) and the S3 directory for that root CID already has all the DAG chunks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
todo: Need to tweak size yet
754bcd5
to
8d472fd
Compare
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why test on node 14 when the deploy script uses 16?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AWS does not support node16 https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html
Deploy script is irrelevant, but I think we can change to 14
const cbor = require('@ipld/dag-cbor') | ||
const pb = require('@ipld/dag-pb') | ||
|
||
const MAX_BLOCK_SIZE = 1 << 20 // Maximum permitted block size in bytes (1MiB). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const MAX_BLOCK_SIZE = 1 << 20 // Maximum permitted block size in bytes (1MiB). | |
const MAX_BLOCK_SIZE = 1 << 21 // Maximum permitted block size in bytes (2MiB). |
since https://github.com/web3-storage/web3.storage/pull/1269/files
Adds
assemble-cars
lambda implementation.It is worth mentioning that it follows same patterns as used in IPFS Elastic Provider:
TODO:
Closes nftstorage/nftstorage.link#20