From 145de5898edae4f9ad13c3815a0788af526d8d80 Mon Sep 17 00:00:00 2001 From: Renan DelValle Date: Wed, 17 Jan 2018 15:39:23 -0800 Subject: [PATCH] Changing Getcerts to GetCerts to match the style of the rest of the codebase. --- realis.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/realis.go b/realis.go index aa29516..a2a2135 100644 --- a/realis.go +++ b/realis.go @@ -309,7 +309,7 @@ func GetDefaultClusterFromZKUrl(zkurl string) *Cluster { } } -func Getcerts(certpath string) (*x509.CertPool, error) { +func GetCerts(certpath string) (*x509.CertPool, error) { globalRootCAs := x509.NewCertPool() caFiles, err := ioutil.ReadDir(certpath) if err != nil { @@ -339,7 +339,7 @@ func defaultTTransport(urlstr string, timeoutms int, config *RealisConfig) (thri tlsConfig.InsecureSkipVerify = true } if config.certspath != "" { - rootCAs, err := Getcerts("examples/certs") + rootCAs, err := GetCerts("examples/certs") if err != nil { config.logger.Println("error occured couldn't fetch certs") return nil, err