etcdserver: address golangci var-naming issues

Signed-off-by: Ivan Valdes <ivan@vald.es>
This commit is contained in:
Ivan Valdes
2024-03-18 14:04:10 -07:00
parent 63e394d090
commit c613b78e6c
21 changed files with 124 additions and 113 deletions

View File

@ -300,8 +300,8 @@ func promoteMemberHTTP(ctx context.Context, url string, id uint64, peerRt http.R
}
// TODO: refactor member http handler code
// cannot import etcdhttp, so manually construct url
requestUrl := url + "/members/promote/" + fmt.Sprintf("%d", id)
req, err := http.NewRequest(http.MethodPost, requestUrl, nil)
requestURL := url + "/members/promote/" + fmt.Sprintf("%d", id)
req, err := http.NewRequest(http.MethodPost, requestURL, nil)
if err != nil {
return nil, err
}