diff --git a/data/conf/cgrates.cfg b/data/conf/cgrates.cfg index 23676c0fa..e737f98d5 100644 --- a/data/conf/cgrates.cfg +++ b/data/conf/cgrates.cfg @@ -17,9 +17,9 @@ # accountdb_name = 11 # Accounting subsystem database name to connect to. # accountdb_user = # Accounting subsystem username to use when connecting to database. # accountdb_passwd = # Accounting subsystem password to use when connecting to database. -# stordb_type = mysql # Stor database type to use: +# stordb_type = mysql # Stor database type to use: # stordb_host = 127.0.0.1 # The host to connect to. Values that start with / are for UNIX domain sockets. -# stordb_port = 3306 # The port to reach the logdb. +# stordb_port = 3306 # The port to reach the stordb. # stordb_name = cgrates # The name of the log database to connect to. # stordb_user = cgrates # Username to use when connecting to stordb. # stordb_passwd = CGRateS.org # Password to use when connecting to stordb. diff --git a/engine/storage_utils.go b/engine/storage_utils.go index 7d09672f0..4c0114c45 100644 --- a/engine/storage_utils.go +++ b/engine/storage_utils.go @@ -103,9 +103,9 @@ func ConfigureLogStorage(db_type, host, port, name, user, pass, marshaler string d, err = NewRedisStorage(host, db_nb, pass, marshaler) case utils.MONGO: d, err = NewMongoStorage(host, port, name, user, pass) - case utils.POSTGRES: - d, err = NewPostgresStorage(host, port, name, user, pass) */ + case utils.POSTGRES: + d, err = NewPostgresStorage(host, port, name, user, pass, maxConn, maxIdleConn) case utils.MYSQL: d, err = NewMySQLStorage(host, port, name, user, pass, maxConn, maxIdleConn) default: