diff --git a/ctl/common.go b/ctl/common.go index 44e01d406..f7f429c58 100644 --- a/ctl/common.go +++ b/ctl/common.go @@ -36,8 +36,8 @@ func SetTLSConfig(flags *pflag.FlagSet, certificatePath *string, certificateKeyP flags.BoolVarP(skipVerify, "tls.skip-verify", "", false, "Skip TLS certificate verification (not secure)") } -// CommandClient returns a pilosa.InternalHTTPClient for the command -func CommandClient(cmd CommandWithTLSSupport) (*http.InternalClient, error) { +// commandClient returns a pilosa.InternalHTTPClient for the command +func commandClient(cmd CommandWithTLSSupport) (*http.InternalClient, error) { tlsConfig := cmd.TLSConfiguration() var TLSConfig *tls.Config if tlsConfig.CertificatePath != "" && tlsConfig.CertificateKeyPath != "" { diff --git a/ctl/export.go b/ctl/export.go index 5bfbd529f..4a20b0cc2 100644 --- a/ctl/export.go +++ b/ctl/export.go @@ -75,7 +75,7 @@ func (cmd *ExportCommand) Run(ctx context.Context) error { } // Create a client to the server. - client, err := CommandClient(cmd) + client, err := commandClient(cmd) if err != nil { return errors.Wrap(err, "creating client") } diff --git a/ctl/import.go b/ctl/import.go index 370425115..83763f3ab 100644 --- a/ctl/import.go +++ b/ctl/import.go @@ -89,7 +89,7 @@ func (cmd *ImportCommand) Run(ctx context.Context) error { return errors.New("path required") } // Create a client to the server. - client, err := CommandClient(cmd) + client, err := commandClient(cmd) if err != nil { return errors.Wrap(err, "creating client") }