From 04aeda21e0ad2f7e8dd2bad3328e6ce0ba38f6a9 Mon Sep 17 00:00:00 2001 From: Niall Sheridan Date: Fri, 29 Jul 2016 00:59:48 +0100 Subject: Support mongo datastores --- server/store/mysql.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/store/mysql.go') diff --git a/server/store/mysql.go b/server/store/mysql.go index a62af6b..7a0b111 100644 --- a/server/store/mysql.go +++ b/server/store/mysql.go @@ -22,7 +22,7 @@ type mysqlDB struct { revoked *sql.Stmt } -func parseConfig(config string) string { +func parseMySQLConfig(config string) string { s := strings.Split(config, ":") if len(s) == 4 { s = append(s, "3306") @@ -41,7 +41,7 @@ func parseConfig(config string) string { // NewMySQLStore returns a MySQL CertStorer. func NewMySQLStore(config string) (CertStorer, error) { - conn, err := sql.Open("mysql", parseConfig(config)) + conn, err := sql.Open("mysql", parseMySQLConfig(config)) if err != nil { return nil, fmt.Errorf("mysql: could not get a connection: %v", err) } -- cgit v1.2.3