cfg test
parent
d4a0ff6269
commit
30756370b4
|
@ -18,6 +18,8 @@ var PlayersCollection *mongo.Collection
|
|||
func getConnectionURI() string {
|
||||
cfg := serverconfig.Cfg.MongoDB
|
||||
|
||||
logger.Mongo.Println("mongo cfg", cfg.Username)
|
||||
|
||||
return "mongodb://" + cfg.Username + ":" + cfg.Password + "@" + cfg.Hostname + ":" + cfg.Port + "/?maxPoolSize=20&w=majority&authSource=" + cfg.Database
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue