From d34ce92d8d0f2e5b541aeafcf2994d9e6c0d2574 Mon Sep 17 00:00:00 2001 From: Rangel Ivanov Date: Wed, 8 May 2024 15:29:19 +0300 Subject: [PATCH] fix comments from pr --- cmd/remote-work-processor/main.go | 4 ++-- internal/executors/http/http_client.go | 4 ++-- internal/executors/http/http_executor.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/remote-work-processor/main.go b/cmd/remote-work-processor/main.go index 66a6750..47bec66 100644 --- a/cmd/remote-work-processor/main.go +++ b/cmd/remote-work-processor/main.go @@ -46,10 +46,10 @@ import ( var ( // Version of the Remote Work Processor. // Injected at linking time via ldflags. - Version string = "0.0.5" + Version string // BuildDate of the Remote Work Processor. // Injected at linking time via ldflags. - BuildDate string = "2024-03-08" + BuildDate string ) func main() { diff --git a/internal/executors/http/http_client.go b/internal/executors/http/http_client.go index 8090cb9..e51cce3 100644 --- a/internal/executors/http/http_client.go +++ b/internal/executors/http/http_client.go @@ -13,12 +13,12 @@ const ( ) func CreateHttpClient(timeoutInS uint64, certAuth *tls.CertificateAuthentication) (*http.Client, error) { - log.Println("Creating HTTP Client...") + log.Println("HTTP Client: creating HTTP Client...") var tp http.RoundTripper if certAuth != nil { var err error - log.Println("Creating TLS transport...") + log.Println("HTTP Client: creating TLS transport...") tp, err = tls.NewTLSConfigurationProvider(certAuth).CreateTransport() if err != nil { return nil, err diff --git a/internal/executors/http/http_executor.go b/internal/executors/http/http_executor.go index f22fd21..f483c02 100644 --- a/internal/executors/http/http_executor.go +++ b/internal/executors/http/http_executor.go @@ -122,7 +122,7 @@ func execute(c *http.Client, p *HttpRequestParameters, authHeader string) (*Http } if err != nil { - log.Println("HTTP Client: error occurred while executing request: ", err) + log.Println("HTTP Client: error occurred while executing request:", err) return nil, executors.NewNonRetryableError("Error occurred while executing HTTP request: %v", err).WithCause(err) } defer resp.Body.Close()