This repository has been archived by the owner on Aug 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It's useful to be able to get the format implementations out of ipld just before `ipld.put` operations in the HTTP API server of IPFS. This is because we've serialized the node on the client for transmission over HTTP so need to deserialize it before passing it into `ipld.put` for it to be serialized (and as such, verified) again. We can duplicate the list of resolvers and logic behind the addition of new resolvers from ipld or we can just expose the `getFormat` function which we do here to reduce any code duplication.
- Loading branch information
1 parent
5bdfe5c
commit 78c8769
Showing
2 changed files
with
15 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters