aboutsummaryrefslogtreecommitdiff
path: root/server/config
diff options
context:
space:
mode:
Diffstat (limited to 'server/config')
-rw-r--r--server/config/config.go2
-rw-r--r--server/config/config_test.go3
2 files changed, 1 insertions, 4 deletions
diff --git a/server/config/config.go b/server/config/config.go
index 9ac4a7d..573ae85 100644
--- a/server/config/config.go
+++ b/server/config/config.go
@@ -95,7 +95,7 @@ func convertDatastoreConfig(c *Config) {
conf := c.Server.Datastore
engine := strings.Split(conf, ":")[0]
switch engine {
- case "mysql", "mongo":
+ case "mysql":
s := strings.SplitN(conf, ":", 4)
engine, user, passwd, addrs := s[0], s[1], s[2], s[3]
c.Server.Database = map[string]string{
diff --git a/server/config/config_test.go b/server/config/config_test.go
index 182436a..b3f356e 100644
--- a/server/config/config_test.go
+++ b/server/config/config_test.go
@@ -68,9 +68,6 @@ func TestDatastoreConversion(t *testing.T) {
"mysql:user:passwd:localhost:3306", Database{"type": "mysql", "username": "user", "password": "passwd", "address": "localhost:3306"},
},
{
- "mongo:::host1,host2", Database{"type": "mongo", "username": "", "password": "", "address": "host1,host2"},
- },
- {
"mem", Database{"type": "mem"},
},
{