Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

fix: only use public api in http api server #3660

Merged
merged 3 commits into from
Apr 30, 2021

Conversation

achingbrain
Copy link
Member

We needed to reach into ipld in order to get at the formats so we can deserialize the data.

Instead, put the data as a block and then read it out using ipfs.dag.get.

Slightly inefficient but better to use the public API.

Fixes #3639

We needed to reach into ipld in order to get at the formats so we can
deserialize the data.

Instead, put the data as a block and then read it out using ipfs.dag.get.

Slightly inefficient but better to use the public API.

Fixes #3639
Copy link
Member

@vasco-santos vasco-santos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! yeah, this is cleaner

@achingbrain achingbrain merged commit 61d0981 into master Apr 30, 2021
@achingbrain achingbrain deleted the fix/only-use-public-api branch April 30, 2021 17:06
@rvagg
Copy link
Member

rvagg commented May 3, 2021

👌 noice

This was referenced Dec 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Types] ipfs-http-server HttpApi requires JSIPFS type
3 participants