fix lint: DatabaseTls -> DatabaseTLS

This commit is contained in:
Jonas Gunz 2021-05-08 16:42:30 +02:00
parent 29b631108d
commit c7353191c5
Signed by: kompetenzbolzen
GPG Key ID: 7F81F7DD517183DE
2 changed files with 3 additions and 3 deletions

@ -73,7 +73,7 @@ const (
DatabaseMaxIdleConnections Key = `database.maxidleconnections`
DatabaseMaxConnectionLifetime Key = `database.maxconnectionlifetime`
DatabaseSslMode Key = `database.sslmode`
DatabaseTls Key = `database.tls`
DatabaseTLS Key = `database.tls`
CacheEnabled Key = `cache.enabled`
CacheType Key = `cache.type`
@ -259,7 +259,7 @@ func InitDefaultConfig() {
DatabaseMaxIdleConnections.setDefault(50)
DatabaseMaxConnectionLifetime.setDefault(10000)
DatabaseSslMode.setDefault("disable")
DatabaseTls.setDefault("false")
DatabaseTLS.setDefault("false")
// Cacher
CacheEnabled.setDefault(false)

@ -118,7 +118,7 @@ func initMysqlEngine() (engine *xorm.Engine, err error) {
config.DatabasePassword.GetString(),
config.DatabaseHost.GetString(),
config.DatabaseDatabase.GetString(),
config.DatabaseTls.GetString())
config.DatabaseTLS.GetString())
engine, err = xorm.NewEngine("mysql", connStr)
if err != nil {
return