fix path parameter in notify

This commit is contained in:
Branden J Brown 2025-03-13 22:15:25 -04:00
parent 8e73402c58
commit 730bb45db4

View File

@ -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 {