fix Find client url

This commit is contained in:
Branden J Brown 2025-03-13 21:05:02 -04:00
parent 70f4e149d4
commit 8047f4f13e

View File

@ -27,7 +27,7 @@ func (cl *Client) Find(ctx context.Context, s chord.Peer, id chord.ID) (chord.Pe
url := url.URL{
Scheme: "http",
Host: addr.String(),
Path: path.Join("/", cl.APIBase, "succ"),
Path: path.Join("/", cl.APIBase, "key"),
RawQuery: url.Values{"s": {id.String()}}.Encode(),
}
req, err := http.NewRequestWithContext(ctx, "GET", url.String(), nil)