fix path parameter in notify
This commit is contained in:
parent
8e73402c58
commit
730bb45db4
@ -80,7 +80,7 @@ func (cl *Client) Notify(ctx context.Context, n *chord.Node, s chord.Peer) error
|
||||
Scheme: "http",
|
||||
Host: addr.String(),
|
||||
Path: path.Join("/", cl.APIBase, "pred"),
|
||||
RawQuery: url.Values{"s": {self.String()}}.Encode(),
|
||||
RawQuery: url.Values{"p": {self.String()}}.Encode(),
|
||||
}
|
||||
req, err := http.NewRequestWithContext(ctx, "POST", url.String(), nil)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user