From 730bb45db4ea8bbe09a7d71de046da9bbefc5260 Mon Sep 17 00:00:00 2001 From: Branden J Brown Date: Thu, 13 Mar 2025 22:15:25 -0400 Subject: [PATCH] fix path parameter in notify --- chord/httpnode/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chord/httpnode/client.go b/chord/httpnode/client.go index 3235f6a..a5f56b1 100644 --- a/chord/httpnode/client.go +++ b/chord/httpnode/client.go @@ -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 {