From 4f37bc7f129673fffea6f4bc96effdf231f5f39c Mon Sep 17 00:00:00 2001 From: Randy Barlow Date: Tue, 17 Sep 2019 13:26:30 -0400 Subject: [PATCH] Add a docblock for rpcJoinNode() Signed-off-by: Randy Barlow --- server/service/rpchttp.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/service/rpchttp.go b/server/service/rpchttp.go index 4a1ab9d..f463206 100644 --- a/server/service/rpchttp.go +++ b/server/service/rpchttp.go @@ -253,6 +253,8 @@ type rpcJoinNodeReply struct { NodeInfo datastructures.NodeInfo } +// Handle the API request for a node to join the cluster. w is used to send a reply to the requestor +// indicating success or failure, and r is used to gather the details of the request. func (cfg *Service) rpcJoinNode(w http.ResponseWriter, r *http.Request) { cfg.ctxFromReq(w, r, "rpc")