fix Find client url
This commit is contained in:
parent
70f4e149d4
commit
8047f4f13e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user