Changing Getcerts to GetCerts to match the style of the rest of the codebase.

This commit is contained in:
Renan DelValle 2018-01-17 15:39:23 -08:00
parent 1e6d4a516c
commit 145de5898e
No known key found for this signature in database
GPG key ID: C240AD6D6F443EC9

View file

@ -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