update linter version to 1.46.2

Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
This commit is contained in:
Ramkumar Chinchani
2022-05-18 20:19:39 +00:00
committed by Ramkumar Chinchani
parent 32afe712d6
commit 287ac05ddc
6 changed files with 12 additions and 7 deletions
+2 -1
View File
@@ -3,6 +3,7 @@ package cli
import (
"context"
"fmt"
"net"
"net/http"
"time"
@@ -86,7 +87,7 @@ func newScrubCmd(conf *config.Config) *cobra.Command {
// checking if the server is already running
req, err := http.NewRequestWithContext(context.Background(),
http.MethodGet,
fmt.Sprintf("http://%s:%s/v2", conf.HTTP.Address, conf.HTTP.Port),
fmt.Sprintf("http://%s/v2", net.JoinHostPort(conf.HTTP.Address, conf.HTTP.Port)),
nil)
if err != nil {
log.Error().Err(err).Msg("unable to create a new http request")