mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Make ees and ers opts into structs (incomplete)
This commit is contained in:
committed by
Dan Christian Bogos
parent
ac171f050e
commit
aa0ae292a2
@@ -120,7 +120,7 @@ func openDB(dialect gorm.Dialector, opts map[string]interface{}) (db *gorm.DB, s
|
||||
}
|
||||
sqlDB.SetMaxOpenConns(int(val))
|
||||
}
|
||||
if iface, has := opts[utils.SQLMaxConnLifetime]; has {
|
||||
if iface, has := opts[utils.SQLConnMaxLifetime]; has {
|
||||
val, err := utils.IfaceAsDuration(iface)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
|
||||
Reference in New Issue
Block a user