Skip to content

Commit

Permalink
fix comments from pr
Browse files Browse the repository at this point in the history
  • Loading branch information
radito3 committed May 8, 2024
1 parent 0aca6a8 commit d34ce92
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cmd/remote-work-processor/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
4 changes: 2 additions & 2 deletions internal/executors/http/http_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion internal/executors/http/http_executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit d34ce92

Please sign in to comment.