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

Commit

Permalink
fix: switch to /api/v0/dht/get (#32)
Browse files Browse the repository at this point in the history
This is the same as /api/v0/routing/get atm,
but has the benefit of being already exposed on *.delegate.ipfs.io
  • Loading branch information
lidel authored Feb 10, 2023
1 parent d33e44c commit f7bd5ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routing.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func (ps *proxyRouting) fetch(ctx context.Context, key string) ([]byte, error) {
// Naively choose one of the Kubo RPC clients.
endpoint := ps.kuboRPC[rand.Intn(len(ps.kuboRPC))]

u, err := url.Parse(fmt.Sprintf("%s/api/v0/routing/get?arg=%s", endpoint, key))
u, err := url.Parse(fmt.Sprintf("%s/api/v0/dht/get?arg=%s", endpoint, key))
if err != nil {
return nil, err
}
Expand Down

0 comments on commit f7bd5ea

Please sign in to comment.