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

fix(ipns): fail fast and fix rpc encoding #17

Merged
merged 3 commits into from
Feb 10, 2023
Merged

Conversation

hacdias
Copy link
Collaborator

@hacdias hacdias commented Feb 8, 2023

See #10 (comment).

Also fixes the routing.GetValue call. I confused it with the CoreAPI.Routing().Get() which expects the path as a string. routing.ValueStore expects the multihash encoded version of the path.

Also added this improvement and fix to the Gateway example: ipfs/boxo#158

Hopefully all this errors will be caught once we run this against the gateway tests.

@hacdias hacdias requested a review from lidel February 8, 2023 08:57
@hacdias hacdias mentioned this pull request Feb 8, 2023
6 tasks
@hacdias hacdias marked this pull request as ready for review February 8, 2023 08:57
@hacdias hacdias self-assigned this Feb 8, 2023
gateway.go Show resolved Hide resolved
@hacdias hacdias force-pushed the feat/fail-fast-getipnsrecord branch from 48dfb39 to 6474a77 Compare February 9, 2023 14:35
@hacdias hacdias requested a review from lidel February 9, 2023 14:39
@hacdias
Copy link
Collaborator Author

hacdias commented Feb 9, 2023

@lidel updated with the NLDJSON parsing of the correct format. PR opened in Kubo to fix the wire-format: ipfs/kubo#9639.

@lidel lidel changed the title feat: fail fast ipns lookup and fix encoding fix(ipns): fail fast and fix rpc encoding Feb 10, 2023
Copy link
Collaborator

@lidel lidel left a comment

Choose a reason for hiding this comment

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

Thanks, this should be future-proof enough (given ipfs/kubo#9639).

routing.go Outdated Show resolved Hide resolved
routing.go Outdated Show resolved Hide resolved
gateway.go Outdated Show resolved Hide resolved
@lidel lidel force-pushed the feat/fail-fast-getipnsrecord branch from e04aa0c to 2e6d8d7 Compare February 10, 2023 02:29
@lidel lidel merged commit 0e7eff6 into main Feb 10, 2023
@lidel lidel deleted the feat/fail-fast-getipnsrecord branch February 10, 2023 02:33
@lidel lidel added this to the M0.2: Feb 17 milestone Feb 11, 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.

2 participants