Skip to content
This repository has been archived by the owner on Aug 21, 2021. It is now read-only.

Commit

Permalink
Add a docblock for rpcJoinNode()
Browse files Browse the repository at this point in the history
Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
  • Loading branch information
bowlofeggs authored and mergify[bot] committed Sep 24, 2019
1 parent 4e10319 commit 4f37bc7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/service/rpchttp.go
Expand Up @@ -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")

Expand Down

0 comments on commit 4f37bc7

Please sign in to comment.