-
Notifications
You must be signed in to change notification settings - Fork 50
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
Executing a selector against a DagService #200
Comments
makes sense to have a go-ipld-prime equivalent of |
I would really like to figure out two things:
On the long term front:
On the short term front:
I suspect a good answer here might involve making some new, separate go modules within this repo. I understand that should let us control the transitive dependency sprawl, and generally enforce success at the design firewall. I don't have a ton of hands-on-experience with how that works out in practice, yet, though, so we'll want to step somewhat carefully on that idea. |
Sadly this interface bloat made its way to JavaScript as well and we have variations of the above. For the newer multiformats/ipld work we just punted entirely to the user - work with [cid,bytes] pairs everywhere. For loading: I give you a CID, you give me it's bytes. For storing: I give you both a CID and its bytes. |
we have the storage/* packages in here now which I think get us at least part of the way to this.. I'm going to close this to remove a bit of clutter but @ribasushi if you feel strongly that closing this is wrong and that there's more to discuss feel free to reopen |
I found myself needing to copy this code nearly-verbatim to another project. Perhaps worth cleaning up the interface and packaging it somewhere in go-ipld-prime?
https://github.com/filecoin-project/lotus/blob/3598eff5d4361dbf03d65fa2f1431b23188b5d76/markets/utils/selectors.go#L23-L29
@willscott @warpfork @rvagg
The text was updated successfully, but these errors were encountered: