X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pm-file-converter%2Fcommon%2Futils%2Futils.go;h=7be5819c59747d21b7d900154f20e10c16c1e05c;hb=6e3dc81c76fc88e000b83c35282d3db823f815a3;hp=dccf3c5e870abf426d699152c30ebc453c7314f5;hpb=4dd29883b619182fb43ebc4565266831d2a3b79e;p=nonrtric%2Fplt%2Franpm.git diff --git a/pm-file-converter/common/utils/utils.go b/pm-file-converter/common/utils/utils.go index dccf3c5..7be5819 100644 --- a/pm-file-converter/common/utils/utils.go +++ b/pm-file-converter/common/utils/utils.go @@ -30,9 +30,7 @@ import ( var httpclient = &http.Client{} // Send a http request with json (json may be nil) -// -//lint:ignore S100 -func Send_http_request(json []byte, method string, url string, retry bool, useAuth bool) bool { +func SendHttpRequest(json []byte, method string, url string, retry bool, useAuth bool) bool { // set the HTTP method, url, and request body var req *http.Request @@ -49,7 +47,7 @@ func Send_http_request(json []byte, method string, url string, retry bool, useAu } if useAuth { - token, err := kafkacollector.Fetch_token() + token, err := kafkacollector.FetchToken() if err != nil { log.Error("Cannot fetch token for http request: ", err) return false