-
Notifications
You must be signed in to change notification settings - Fork 12
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 integrated nopfs-content blocking to the gateway #22
Conversation
This is pending some go.mod bubbling.
setup.go
Outdated
fetcherConfig.PrototypeChooser = dagpb.AddSupportToChooser(func(lnk ipld.Link, lnkCtx ipld.LinkContext) (ipld.NodePrototype, error) { | ||
if tlnkNd, ok := lnkCtx.LinkNode.(schema.TypedLinkNode); ok { | ||
return tlnkNd.LinkTargetNodePrototype(), nil | ||
} | ||
return basicnode.Prototype.Any, nil | ||
}) |
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'm not sure this is... I wish it was more hidden, i.e. something that happens in NewBasicResolver
.
@lidel this is indeed the default? https://github.com/ipfs/boxo/blob/main/fetcher/impl/blockservice/fetcher.go#L127
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.
See ipfs/boxo#485
It ended up pretty simple after ipfs-shipyard/nopfs#21 |
We will need a follow-up to subscribe to lists.... we need to make them append-only first. |
Some things need bubbling/merging, starting with ipfs/boxo#484