Add fetcher config top level dependency#8081
Add fetcher config top level dependency#8081hannahhoward merged 2 commits intofeat/update-ipld-go-pathfrom
Conversation
License: MIT Signed-off-by: hannahhoward <hannah@hannahhoward.net>
| // FetcherConfig returns a fetcher config that can build new fetcher instances | ||
| func FetcherConfig(bs blockservice.BlockService) fetcher.Factory { |
There was a problem hiding this comment.
@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)
There was a problem hiding this comment.
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>
Goals
Move dagpb dependency up to go-ipfs and out of go-fetcher, remove custom construction of FetcherConfig everywhere
Implementation
For Discussion