-
Notifications
You must be signed in to change notification settings - Fork 5
Dag creation #9
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
base: main
Are you sure you want to change the base?
Dag creation #9
Conversation
CAR FIle Implemetatioon
tests: add tests for the CreateNewAdder func in the DAGService
Fix: upgraded deprecated packages
Pulling @volmedo to review! Thank you! |
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.
looking good, left some comments.
<<<<<<< HEAD | ||
dist/ | ||
======= | ||
go.sum | ||
>>>>>>> dag_repo/main |
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.
I guess you forgot to remove the merge conflict marks 🙂
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.
some more merge conflict marks in this file, please resolve
adder.mu.Lock() | ||
defer adder.mu.Unlock() |
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.
do we need a mutex for this? It looks to me the kind of job that sync.Once
would be more suited for.
const ( | ||
DefaultChunkSize = "size-1048576" // 1MB chunks | ||
|
||
MaxLinks = 1048576 | ||
|
||
UseRawLeaves = true | ||
|
||
LiveCacheSize = uint64(256 << 10) // 256KB | ||
) |
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.
do these need to be exported?
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.
please remove this file from your PR. It looks like it's overwriting the existing README.md.
Implementation of DAG in Golang for Storacha go-w3up
Adder Package Implementation
The adder package provides functionality to add files and directories to content-addressed storage by chunking data, constructing a Directed Acyclic Graph (DAG), and integrating with a Mutable File System for retrieval. The go-w3s-client provides a reference implementation for building the DAG in this repo.