Skip to content

Add fetcher config top level dependency#8081

Merged
hannahhoward merged 2 commits intofeat/update-ipld-go-pathfrom
feat/fetcher-config-dependency
Apr 21, 2021
Merged

Add fetcher config top level dependency#8081
hannahhoward merged 2 commits intofeat/update-ipld-go-pathfrom
feat/fetcher-config-dependency

Conversation

@hannahhoward
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

@hannahhoward hannahhoward Apr 21, 2021

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.

3 participants