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

Add fetcher config top level dependency #8081

Merged
merged 2 commits into from Apr 21, 2021

Conversation

hannahhoward
Copy link
Contributor

@hannahhoward hannahhoward commented Apr 20, 2021

Goals

Move dagpb dependency up to go-ipfs and out of go-fetcher, remove custom construction of FetcherConfig everywhere

Implementation

  • Construct a top level fetcher factory instance.
  • Feed it to the resolver
  • Remove custom config when using the resolver

For Discussion

  • will submit node api pr once this is approved

License: MIT
Signed-off-by: hannahhoward <hannah@hannahhoward.net>
Comment on lines +93 to +94
// FetcherConfig returns a fetcher config that can build new fetcher instances
func FetcherConfig(bs blockservice.BlockService) fetcher.Factory {
Copy link
Contributor

Choose a reason for hiding this comment

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

@hannahhoward @Stebalien do you think these lines of code for adding in UnixFS support are something that people are going to be missing?

Embedding go-ipfs as a library is not the friendliest at the moment so I'm wondering if people are expecting UnixFS support to live elsewhere and if this should live in a helper package somewhere.

Not a huge deal since we can wait until the requests come in to extract this code out, but if there are users who would be confused (or if we're going to feel the need to put this code in the release notes for go-path or go-merkledag) then we could put it somewhere else (e.g. a helper package in unixfsnode or go-merkledag)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it was in go-unixfsnode, people objected...

Ultimately I agree and I would rather it live here.

License: MIT
Signed-off-by: hannahhoward <hannah@hannahhoward.net>
@hannahhoward hannahhoward merged commit bae6c8a into feat/update-ipld-go-path Apr 21, 2021
@hacdias hacdias deleted the feat/fetcher-config-dependency branch May 9, 2023 11:02
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.

None yet

3 participants