diff options
author | Niall Sheridan <nsheridan@gmail.com> | 2016-07-29 00:59:48 +0100 |
---|---|---|
committer | Niall Sheridan <nsheridan@gmail.com> | 2016-07-31 22:09:59 +0100 |
commit | 04aeda21e0ad2f7e8dd2bad3328e6ce0ba38f6a9 (patch) | |
tree | 3da48edf177826aeaae69447fd1fb001e873c43a /server/store/mysql.go | |
parent | 531f63e5a9e82d86a6ee1f5d44bebee0bc51d828 (diff) |
Support mongo datastores
Diffstat (limited to 'server/store/mysql.go')
-rw-r--r-- | server/store/mysql.go | 4 |
1 files changed, 2 insertions, 2 deletions
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) } |