diff options
author | Unknwon <u@gogs.io> | 2015-09-16 23:08:46 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-09-16 23:08:46 -0400 |
commit | e75fd2f783a413ae612e3e6110c912b3ecf9555d (patch) | |
tree | 969e7fc034c60db60695780b75815bbba17db7e8 /modules/setting/setting.go | |
parent | a517cfdf7b24514d7c1f6695dc175ce18c832465 (diff) | |
download | gitea-e75fd2f783a413ae612e3e6110c912b3ecf9555d.tar.gz gitea-e75fd2f783a413ae612e3e6110c912b3ecf9555d.zip |
simplify names
Diffstat (limited to 'modules/setting/setting.go')
-rw-r--r-- | modules/setting/setting.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go index a6211e9060..317e3b7b03 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -229,9 +229,9 @@ func forcePathSeparator(path string) { } } -// NewConfigContext initializes configuration context. +// NewContext initializes configuration context. // NOTE: do not print any log except error. -func NewConfigContext() { +func NewContext() { workDir, err := WorkDir() if err != nil { log.Fatal(4, "Fail to get work directory: %v", err) @@ -545,6 +545,7 @@ func newSessionService() { // Mailer represents mail service. type Mailer struct { + QueueLength int Name string Host string From string @@ -581,6 +582,7 @@ func newMailService() { } MailService = &Mailer{ + QueueLength: sec.Key("SEND_BUFFER_LEN").MustInt(100), Name: sec.Key("NAME").MustString(AppName), Host: sec.Key("HOST").String(), User: sec.Key("USER").String(), |